@@ 27-38 (lines=12) @@ | ||
24 | $this->assertEquals('123123123', $res->get()); |
|
25 | } |
|
26 | ||
27 | public function testMobile() |
|
28 | { |
|
29 | $defNr = '48601123123'; |
|
30 | $res = new Phone($defNr); |
|
31 | $this->assertTrue($res->isMobile()); |
|
32 | $this->assertFalse($res->isFixed()); |
|
33 | $this->assertFalse($res->isVoip()); |
|
34 | $this->assertFalse($res->isUAN()); |
|
35 | $this->assertFalse($res->isSharedCost()); |
|
36 | $this->assertFalse($res->isPremiumRate()); |
|
37 | $this->assertFalse($res->isTollFree()); |
|
38 | } |
|
39 | public function testFixed() |
|
40 | { |
|
41 | $defNr = '48421123123'; |
|
@@ 39-50 (lines=12) @@ | ||
36 | $this->assertFalse($res->isPremiumRate()); |
|
37 | $this->assertFalse($res->isTollFree()); |
|
38 | } |
|
39 | public function testFixed() |
|
40 | { |
|
41 | $defNr = '48421123123'; |
|
42 | $res = new Phone($defNr); |
|
43 | $this->assertFalse($res->isMobile()); |
|
44 | $this->assertTrue($res->isFixed()); |
|
45 | $this->assertFalse($res->isVoip()); |
|
46 | $this->assertFalse($res->isUAN()); |
|
47 | $this->assertFalse($res->isSharedCost()); |
|
48 | $this->assertFalse($res->isPremiumRate()); |
|
49 | $this->assertFalse($res->isTollFree()); |
|
50 | } |
|
51 | ||
52 | /** |
|
53 | * @expectedException \mrcnpdlk\Validator\Exception |