Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class EqualTest extends TestCase |
||
9 | { |
||
10 | public function testEqualsWithPrimitiveValueAndExpectTrue() |
||
11 | { |
||
12 | $this->assertTrue(equals(1)(1)); |
||
13 | $this->assertTrue(equals('someString')('someString')); |
||
14 | } |
||
15 | public function testEqualsWithPrimitiveValueAndExpectFalse() |
||
16 | { |
||
17 | $this->assertFalse(equals(1)(2)); |
||
18 | $this->assertFalse(equals('someString')('anotherString')); |
||
19 | } |
||
20 | public function testEqualsWithObjectAndExpectTrue() |
||
21 | { |
||
22 | $obj1 = new PlainObjectAsset(); |
||
23 | $obj1->setData('data'); |
||
24 | $obj2 = new PlainObjectAsset(); |
||
25 | $obj2->setData('data'); |
||
26 | $this->assertTrue(equals($obj1)($obj2)); |
||
27 | } |
||
28 | public function testEqualsWithObjectAndExpectFalse() |
||
35 | } |
||
36 | } |
||
37 |