CeiValidatorTest::testValidateValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.8666
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace yiibr\brvalidator\tests;
4
5
use yiibr\brvalidator\CeiValidator;
6
7
8
/**
9
 * CeiValidatorTest
10
 */
11
class CeiValidatorTest extends TestCase
12
{
13
    public function testValidateValue()
14
    {
15
        $val = new CeiValidator();
16
        $this->assertFalse($val->validate('2738189'));
17
18
        $this->assertFalse($val->validate('111111111111'));
19
        $this->assertFalse($val->validate('11.111.11111/11'));
20
21
        $this->assertTrue($val->validate('11.583.00249/85'));
22
        $this->assertTrue($val->validate('27.729.71181/87'));
23
        $this->assertTrue($val->validate('277297118187'));
24
    }
25
}
26