1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | /** |
||
6 | * @author : Jagepard <[email protected]> |
||
7 | * @license https://mit-license.org/ MIT |
||
8 | */ |
||
9 | |||
10 | namespace Structural\Adapter\Tests; |
||
11 | |||
12 | use Structural\Adapter\{Registry, Adapter, AnotherRegistry, RegistryInterface}; |
||
13 | use PHPUnit\Framework\TestCase as PHPUnit_Framework_TestCase; |
||
0 ignored issues
–
show
|
|||
14 | |||
15 | class AdapterTest extends PHPUnit_Framework_TestCase |
||
16 | { |
||
17 | private Adapter $adapter; |
||
18 | private RegistryInterface $registry; |
||
19 | |||
20 | protected function setUp(): void |
||
21 | { |
||
22 | $this->registry = new Registry(); |
||
23 | $this->adapter = new Adapter(new AnotherRegistry()); |
||
24 | } |
||
25 | |||
26 | public function testSecond() |
||
27 | { |
||
28 | $this->registry->setFirst('First'); |
||
29 | $this->assertEquals('First', $this->registry->getFirst()); |
||
30 | $this->registry->setSecond('3.14'); |
||
31 | $this->assertEquals('3.14', $this->registry->getSecond()); |
||
32 | } |
||
33 | |||
34 | public function testAdapt() |
||
35 | { |
||
36 | $this->adapter->setFirst('First'); |
||
37 | $this->assertEquals('First', $this->adapter->getFirst()); |
||
38 | $this->adapter->setSecond('3.14'); |
||
39 | $this->assertEquals('3.14', $this->adapter->getSecond()); |
||
40 | } |
||
41 | } |
||
42 |
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