bytic /
mail
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Nip\Mail\Tests; |
||
| 4 | |||
| 5 | use Nip\Config\Config; |
||
| 6 | use Nip\Container\Container; |
||
| 7 | use PHPUnit\Framework\TestCase; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Class AbstractTest. |
||
| 11 | */ |
||
| 12 | abstract class AbstractTest extends TestCase |
||
| 13 | { |
||
| 14 | protected $object; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var \UnitTester |
||
|
0 ignored issues
–
show
|
|||
| 18 | */ |
||
| 19 | protected $tester; |
||
| 20 | |||
| 21 | public function tearDown(): void |
||
| 22 | { |
||
| 23 | parent::tearDown(); |
||
| 24 | \Mockery::close(); |
||
| 25 | Container::getInstance()->set('config', null); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param $name |
||
| 30 | */ |
||
| 31 | protected function loadConfiguration($name = 'mail', $container = null) |
||
| 32 | { |
||
| 33 | /** @noinspection PhpIncludeInspection */ |
||
| 34 | $config = new Config(['mail' => require TEST_FIXTURE_PATH.'/config/'.$name.'.php']); |
||
| 35 | $container = $container ?: Container::getInstance(); |
||
| 36 | $container->set('config', $config); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |
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