Omnipay\Common\CreditCardTest::testCustomBrandAddedTwiceReturnsFalse PHP Метод

testCustomBrandAddedTwiceReturnsFalse() публичный Метод

    public function testCustomBrandAddedTwiceReturnsFalse()
    {
        $this->assertTrue($this->card->addSupportedBrand('omniexpress', '/^9\\d{12}(\\d{3})?$/'));
        $this->assertArrayHasKey('omniexpress', $this->card->getSupportedBrands());
        $this->assertFalse($this->card->addSupportedBrand('omniexpress', '/^9\\d{12}(\\d{3})?$/'));
    }
CreditCardTest