Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function objectBehavior() { |
||
18 | $nullObject = new NullObject(); |
||
19 | |||
20 | $I = $this->tester; |
||
21 | $I->describe('behavior of null object'); |
||
22 | |||
23 | $I->expectThat('NullObject check methods always always show it as null and empty'); |
||
24 | $I->seeBool($nullObject->isNull()) |
||
25 | ->isTrue(); |
||
26 | $I->seeBool($nullObject->isEmpty()) |
||
27 | ->isTrue(); |
||
28 | |||
29 | $I->expectThat('NullObject is always equal to `null` and NullObject\'s'); |
||
30 | $I->seeBool($nullObject->isEqualTo(null)) |
||
31 | ->isTrue(); |
||
32 | $I->seeBool($nullObject->isEqualTo(new NullObject())) |
||
33 | ->isTrue(); |
||
34 | } |
||
35 | } |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.