1 | <?php |
||
8 | class TestHelper |
||
9 | { |
||
10 | private static $aimeos; |
||
11 | private static $context = []; |
||
12 | |||
13 | |||
14 | public static function bootstrap() |
||
21 | } |
||
22 | |||
23 | |||
24 | public static function getContext( $site = 'unittest' ) |
||
25 | { |
||
26 | if( !isset( self::$context[$site] ) ) { |
||
27 | self::$context[$site] = self::createContext( $site ); |
||
28 | } |
||
29 | |||
30 | return clone self::$context[$site]; |
||
31 | } |
||
32 | |||
33 | |||
34 | private static function getAimeos() |
||
35 | { |
||
36 | if( !isset( self::$aimeos ) ) |
||
37 | { |
||
38 | require_once 'Bootstrap.php'; |
||
39 | spl_autoload_register( 'Aimeos\\Bootstrap::autoload' ); |
||
40 | |||
41 | $extdir = dirname( dirname( dirname( __DIR__ ) ) ); |
||
42 | self::$aimeos = new \Aimeos\Bootstrap( array( $extdir ), false ); |
||
43 | } |
||
44 | |||
45 | return self::$aimeos; |
||
46 | } |
||
47 | |||
48 | |||
49 | /** |
||
50 | * Creates a new context item. |
||
51 | * |
||
52 | * @param string $site Unique site code |
||
53 | * @return \\Aimeos\MShop\Context\Item\Iface Context object |
||
|
|||
54 | */ |
||
55 | private static function createContext( $site ) |
||
88 | } |
||
89 | } |
||
90 |
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