Conditions | 3 |
Paths | 4 |
Total Lines | 25 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function testZend() |
||
14 | { |
||
15 | if( class_exists( 'Zend_Config' ) === false ) { |
||
16 | $this->markTestSkipped( 'Class \Zend_Config not found' ); |
||
17 | } |
||
18 | |||
19 | |||
20 | $start = microtime( true ); |
||
21 | |||
22 | $paths = array( |
||
23 | __DIR__ . DIRECTORY_SEPARATOR . 'one', |
||
24 | __DIR__ . DIRECTORY_SEPARATOR . 'two', |
||
25 | ); |
||
26 | |||
27 | for( $i = 0; $i < 1000; $i++ ) |
||
28 | { |
||
29 | $conf = new \Aimeos\MW\Config\Zend( new \Zend_Config( [], true ), $paths ); |
||
30 | |||
31 | $conf->get( 'test/db/host' ); |
||
32 | $conf->get( 'test/db/username' ); |
||
33 | $conf->get( 'test/db/password' ); |
||
34 | } |
||
35 | |||
36 | $stop = microtime( true ); |
||
37 | echo "\n config zend: " . ( ( $stop - $start ) * 1000 ) . " msec\n"; |
||
38 | } |
||
40 |
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