| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function testReturnsResponseParameters() |
||
| 31 | { |
||
| 32 | $this->assertInstanceOf( |
||
| 33 | // ::class, // 5.4 < php |
||
| 34 | 'SymfonyUtil\Component\HttpFoundation\ResponseParameters', |
||
| 35 | (new NullStringControllerModel())->__invoke('', new Request()) |
||
| 36 | ); |
||
| 37 | /* |
||
| 38 | $this->assertInternalType('array', (new NullStringControllerModel())->__invoke('', new Request())); |
||
| 39 | $this->assertSame([], (new NullStringControllerModel())->__invoke('', new Request())); |
||
| 40 | $this->assertSame(0, count((new NullStringControllerModel())->__invoke('', new Request()))); |
||
| 41 | $this->assertEmpty((new NullStringControllerModel())->__invoke('', new Request())); |
||
| 42 | */ |
||
| 43 | } |
||
| 44 | } |
||
| 45 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.