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