<commit_before><?php

namespace GoPay\Definition\Payment;

class BankSwiftCodeTest extends \PHPUnit_Framework_TestCase
{
    public function testSwiftCodeHasEightOrTwelveCharacters()
    {
        $reflection = new \ReflectionClass('GoPay\Definition\Payment\BankSwiftCode');
        foreach ($reflection->getConstants() as $code) {
            $this->assertSwiftCodeLength($code);
        }
    }

    private function assertSwiftCodeLength($code)
    {
        $expectedLength = $code == BankSwiftCode::ERA ? 12 : 8;
        assertThat(strlen($code), is($expectedLength));
    }
}<commit_msg>Fixed unit test<commit_after><?php

namespace GoPay\Definition\Payment;

class BankSwiftCodeTest extends \PHPUnit_Framework_TestCase
{
    public function testSwiftCodeHasEightOrTwelveCharacters()
    {
        $reflection = new \ReflectionClass('GoPay\Definition\Payment\BankSwiftCode');
        foreach ($reflection->getConstants() as $code) {
            if ($code != "OTHERS") {
                $this->assertSwiftCodeLength($code);
            }
        }
    }

    private function assertSwiftCodeLength($code)
    {
        $expectedLength = $code == BankSwiftCode::ERA ? 12 : 8;
        assertThat(strlen($code), is($expectedLength));
    }
}
{'fraction_non_alphanumeric': 0.1166532582461786, 'fraction_numerical': 0.004827031375703942, 'mean_word_length': 3.2457337883959045, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2356867', 'n_tokens_mistral': 363, 'n_tokens_neox': 343, 'n_words': 61}