| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 7 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function testExecute(): void |
||
| 34 | { |
||
| 35 | ob_start(); |
||
| 36 | $this->device->execute("on"); |
||
| 37 | $on = ob_get_clean(); |
||
| 38 | $this->assertEquals($on, sprintf("The Light turns %s \n", "on")); |
||
| 39 | |||
| 40 | ob_start(); |
||
| 41 | $this->device->execute("off"); |
||
| 42 | $off = ob_get_clean(); |
||
| 43 | $this->assertEquals($off, sprintf("The Light turns %s \n", "off")); |
||
| 44 | |||
| 45 | ob_start(); |
||
| 46 | $this->device->execute("toggle"); |
||
| 47 | $toggle = ob_get_clean(); |
||
| 48 | $this->assertEquals($toggle, sprintf("The Light turns %s \n", "on")); |
||
| 49 | |||
| 50 | ob_start(); |
||
| 51 | $this->device->execute("toggle"); |
||
| 52 | $toggle = ob_get_clean(); |
||
| 53 | $this->assertEquals($toggle, sprintf("The Light turns %s \n", "off")); |
||
| 54 | } |
||
| 56 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths