Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 2 | Features | 0 |
1 | <?php |
||
8 | class BEAlgorithmTest extends TestCase |
||
9 | { |
||
10 | const VALID_NUMBER = '00012511119'; |
||
11 | const VALID_NUMBER2 = '02073034044'; // a valid number in year 2k |
||
12 | const INVALID_NUMBER_CHECK = '00012511120'; |
||
13 | const INVALID_NUMBER_LENGTH = '0001251112020'; |
||
14 | |||
15 | public function testValidNumber() |
||
16 | { |
||
17 | $this->assertTrue(TINValid::checkTIN('be', self::VALID_NUMBER), "Failed to validate " . self::VALID_NUMBER); |
||
18 | $this->assertTrue(TINValid::checkTIN('be', self::VALID_NUMBER2), "Failed to validate " . self::VALID_NUMBER2); |
||
19 | } |
||
20 | |||
21 | public function testInvalidNumber() |
||
25 | } |
||
26 | } |
||
27 |