@@ -6,38 +6,38 @@ |
||
6 | 6 | |
7 | 7 | class ConfigTest extends \PHPUnit_Framework_TestCase |
8 | 8 | { |
9 | - const CONFIG_FILE = '/../res/config.yml'; |
|
10 | - const CACHE_PATH = '/tmp/cache_config_123634f3d'; |
|
9 | + const CONFIG_FILE = '/../res/config.yml'; |
|
10 | + const CACHE_PATH = '/tmp/cache_config_123634f3d'; |
|
11 | 11 | |
12 | - public function testConfig() |
|
13 | - { |
|
14 | - $app = new Application(); |
|
12 | + public function testConfig() |
|
13 | + { |
|
14 | + $app = new Application(); |
|
15 | 15 | |
16 | - $app->register(new YamlConfigurationServiceProvider(__DIR__ . self::CONFIG_FILE)); |
|
16 | + $app->register(new YamlConfigurationServiceProvider(__DIR__ . self::CONFIG_FILE)); |
|
17 | 17 | |
18 | - $this->assertEquals($app['config']['db']['pass'], '123123'); |
|
19 | - $this->assertEquals($app['config']['facebook']['debug'], true); |
|
20 | - $this->assertEquals(count($app['config']['security']['rules']['IS_AUTHENTICATED_ANONYMOUSLY']), 2); |
|
21 | - } |
|
18 | + $this->assertEquals($app['config']['db']['pass'], '123123'); |
|
19 | + $this->assertEquals($app['config']['facebook']['debug'], true); |
|
20 | + $this->assertEquals(count($app['config']['security']['rules']['IS_AUTHENTICATED_ANONYMOUSLY']), 2); |
|
21 | + } |
|
22 | 22 | |
23 | - public function testCache() |
|
24 | - { |
|
25 | - $app = new Application(); |
|
23 | + public function testCache() |
|
24 | + { |
|
25 | + $app = new Application(); |
|
26 | 26 | |
27 | - system("rm -rf " . escapeshellarg(self::CACHE_PATH)); |
|
27 | + system("rm -rf " . escapeshellarg(self::CACHE_PATH)); |
|
28 | 28 | |
29 | - $app->register(new YamlConfigurationServiceProvider(__DIR__ . self::CONFIG_FILE, ['cache_dir' => self::CACHE_PATH])); |
|
29 | + $app->register(new YamlConfigurationServiceProvider(__DIR__ . self::CONFIG_FILE, ['cache_dir' => self::CACHE_PATH])); |
|
30 | 30 | |
31 | - $this->assertEquals($app['config']['db']['pass'], '123123'); |
|
31 | + $this->assertEquals($app['config']['db']['pass'], '123123'); |
|
32 | 32 | |
33 | - $this->assertFileExists(self::CACHE_PATH . '/config.cache.php'); |
|
34 | - $this->assertFileExists(self::CACHE_PATH . '/config.cache.php.meta'); |
|
33 | + $this->assertFileExists(self::CACHE_PATH . '/config.cache.php'); |
|
34 | + $this->assertFileExists(self::CACHE_PATH . '/config.cache.php.meta'); |
|
35 | 35 | |
36 | - $app = new Application(); |
|
36 | + $app = new Application(); |
|
37 | 37 | |
38 | - $app->register(new YamlConfigurationServiceProvider(__DIR__ . self::CONFIG_FILE, ['cache_dir' => self::CACHE_PATH])); |
|
38 | + $app->register(new YamlConfigurationServiceProvider(__DIR__ . self::CONFIG_FILE, ['cache_dir' => self::CACHE_PATH])); |
|
39 | 39 | |
40 | - $this->assertEquals($app['config']['db']['pass'], '123123'); |
|
41 | - } |
|
40 | + $this->assertEquals($app['config']['db']['pass'], '123123'); |
|
41 | + } |
|
42 | 42 | |
43 | 43 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | { |
14 | 14 | $app = new Application(); |
15 | 15 | |
16 | - $app->register(new YamlConfigurationServiceProvider(__DIR__ . self::CONFIG_FILE)); |
|
16 | + $app->register(new YamlConfigurationServiceProvider(__DIR__.self::CONFIG_FILE)); |
|
17 | 17 | |
18 | 18 | $this->assertEquals($app['config']['db']['pass'], '123123'); |
19 | 19 | $this->assertEquals($app['config']['facebook']['debug'], true); |
@@ -24,18 +24,18 @@ discard block |
||
24 | 24 | { |
25 | 25 | $app = new Application(); |
26 | 26 | |
27 | - system("rm -rf " . escapeshellarg(self::CACHE_PATH)); |
|
27 | + system("rm -rf ".escapeshellarg(self::CACHE_PATH)); |
|
28 | 28 | |
29 | - $app->register(new YamlConfigurationServiceProvider(__DIR__ . self::CONFIG_FILE, ['cache_dir' => self::CACHE_PATH])); |
|
29 | + $app->register(new YamlConfigurationServiceProvider(__DIR__.self::CONFIG_FILE, ['cache_dir' => self::CACHE_PATH])); |
|
30 | 30 | |
31 | 31 | $this->assertEquals($app['config']['db']['pass'], '123123'); |
32 | 32 | |
33 | - $this->assertFileExists(self::CACHE_PATH . '/config.cache.php'); |
|
34 | - $this->assertFileExists(self::CACHE_PATH . '/config.cache.php.meta'); |
|
33 | + $this->assertFileExists(self::CACHE_PATH.'/config.cache.php'); |
|
34 | + $this->assertFileExists(self::CACHE_PATH.'/config.cache.php.meta'); |
|
35 | 35 | |
36 | 36 | $app = new Application(); |
37 | 37 | |
38 | - $app->register(new YamlConfigurationServiceProvider(__DIR__ . self::CONFIG_FILE, ['cache_dir' => self::CACHE_PATH])); |
|
38 | + $app->register(new YamlConfigurationServiceProvider(__DIR__.self::CONFIG_FILE, ['cache_dir' => self::CACHE_PATH])); |
|
39 | 39 | |
40 | 40 | $this->assertEquals($app['config']['db']['pass'], '123123'); |
41 | 41 | } |