Total Complexity | 6 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
9 | class StaticPrototypesTest extends TestCase |
||
10 | { |
||
11 | |||
12 | public function testPrototypeCanBeCreated(): void |
||
13 | { |
||
14 | $this->assertNull(DemoClassTest::addStaticMethod('prototypeStaticMethod', fn() => self::$static_property)); |
||
15 | } |
||
16 | |||
17 | public function testPrototypeCanBeCalled(): void |
||
18 | { |
||
19 | $this->assertTrue(DemoClassTest::prototypeStaticMethod()); |
||
20 | } |
||
21 | |||
22 | public function testErrorIsThrownInNonExistentMethods(): void |
||
26 | } |
||
27 | |||
28 | public function testCantOverridePrototypes(): void |
||
32 | } |
||
33 | |||
34 | public function testCantOverrideMethods(): void |
||
38 | } |
||
39 | |||
40 | public function testCanUseNamedArguments(): void |
||
50 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.