| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | class BuilderTest extends PHPUnit_Framework_TestCase |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var |
||
| 23 | */ |
||
| 24 | protected $computer; |
||
| 25 | |||
| 26 | |||
| 27 | protected function setUp(): void |
||
| 28 | { |
||
| 29 | $master = new DanilaMaster(); |
||
| 30 | $master->buildComputer('Yosemite'); |
||
| 31 | $this->computer = $master->getComputer(); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function testInstance() |
||
| 35 | { |
||
| 36 | $this->assertInstanceOf(Computer::class, $this->getComputer()); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function testValues() |
||
| 40 | { |
||
| 41 | $this->assertEquals($this->getComputer()->changeSoftware('Mavericks')->getSoftware(), 'Mavericks'); |
||
| 42 | $this->assertEquals($this->getComputer()->increaseHdd()->getHdd(), 1000); |
||
| 43 | $this->assertEquals($this->getComputer()->increaseRam()->getRam(), 8192); |
||
| 44 | $this->assertEquals($this->getComputer()->overclockGpu()->getGpu(), 3072); |
||
| 45 | $this->assertEquals($this->getComputer()->overclockCpu()->getCpu(), 2500); |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return mixed |
||
| 50 | */ |
||
| 51 | public function getComputer() |
||
| 54 | } |
||
| 55 | } |
||
| 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