| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 19 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| 1 | <?php | ||
| 23 | public function testCache() | ||
| 24 |     { | ||
| 25 | $app = new Application(); | ||
| 26 | |||
| 27 |         system("rm -rf " . escapeshellarg(self::CACHE_PATH)); | ||
| 28 | |||
| 29 | $app->register(new YamlConfigurationServiceProvider(self::CONFIG_FILE, ['cache_dir' => self::CACHE_PATH])); | ||
| 30 | |||
| 31 | $this->assertEquals($app['config']['db']['pass'], '123123'); | ||
| 32 | |||
| 33 | $this->assertFileExists(self::CACHE_PATH . '/config.cache.php'); | ||
| 34 | $this->assertFileExists(self::CACHE_PATH . '/config.cache.php.meta'); | ||
| 35 | |||
| 36 | $app = new Application(); | ||
| 37 | |||
| 38 | $app->register(new YamlConfigurationServiceProvider(self::CONFIG_FILE, ['cache_dir' => self::CACHE_PATH])); | ||
| 39 | |||
| 40 | $this->assertEquals($app['config']['db']['pass'], '123123'); | ||
| 41 | } | ||
| 42 | |||
| 44 | 
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.