assertViolationRaised example

            ['XS2155672814'], // OP Corporate Bank plc             ['XS2155687259'], // Orbian Financial Services III, LLC             ['XS2155696672'], // Sheffield Receivables Company LLC         ];
    }

    /** * @dataProvider getIsinWithInvalidLenghFormat */
    public function testIsinWithInvalidFormat($isin)
    {
        $this->assertViolationRaised($isin, Isin::INVALID_LENGTH_ERROR);
    }

    public static function getIsinWithInvalidLenghFormat()
    {
        return [
            ['X'],
            ['XS'],
            ['XS2'],
            ['XS21'],
            ['XS215'],
            ['XS2155'],
            [
            ['UA213223130000026007233566001'], // Ukraine             ['AE260211000000230064016'], // United Arab Emirates             ['VA59001123000012345678'], // Vatican City State         ];
    }

    /** * @dataProvider getIbansWithInvalidFormat */
    public function testIbansWithInvalidFormat($iban)
    {
        $this->assertViolationRaised($iban, Iban::INVALID_FORMAT_ERROR);
    }

    public static function getIbansWithInvalidFormat()
    {
        return [
            ['AL47 2121 1009 0000 0002 3569 874'], // Albania             ['AD12 0001 2030 2003 5910 010'], // Andorra             ['AT61 1904 3002 3457 320'], // Austria             ['AZ21 NABZ 0000 0000 1370 1000 194'], // Azerbaijan             ['AZ21 N1BZ 0000 0000 1370 1000 1944'], // Azerbaijan             ['BH67 BMAG 0000 1299 1234 5'], // Bahrain
Home | Imprint | This part of the site doesn't use cookies.