@@ -15,6 +15,6 @@ |
||
| 15 | 15 | |
| 16 | 16 | public function viewAction(Request $request, Application $app, $slug) |
| 17 | 17 | { |
| 18 | - return new Response('Article ' . $slug); |
|
| 18 | + return new Response('Article '.$slug); |
|
| 19 | 19 | } |
| 20 | 20 | } |
| 21 | 21 | \ No newline at end of file |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | use Junker\Silex\Provider\YamlRouteServiceProvider; |
| 6 | 6 | |
| 7 | 7 | |
| 8 | -include __DIR__ . '/../Acme/Controller/ArticlesController.php'; |
|
| 8 | +include __DIR__.'/../Acme/Controller/ArticlesController.php'; |
|
| 9 | 9 | |
| 10 | 10 | class RouteTest extends WebTestCase |
| 11 | 11 | { |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | $app['debug'] = TRUE; |
| 21 | 21 | $app['session.test'] = TRUE; |
| 22 | 22 | |
| 23 | - $app->register(new YamlRouteServiceProvider(__DIR__ . self::CONFIG_FILE, ['cache_dir' => self::CACHE_PATH])); |
|
| 23 | + $app->register(new YamlRouteServiceProvider(__DIR__.self::CONFIG_FILE, ['cache_dir' => self::CACHE_PATH])); |
|
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | return $app; |
@@ -48,17 +48,17 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | $client = $this->createClient(); |
| 50 | 50 | |
| 51 | - $this->assertFileExists(self::CACHE_PATH . '/routes.cache.php'); |
|
| 52 | - $this->assertFileExists(self::CACHE_PATH . '/routes.cache.php.meta'); |
|
| 51 | + $this->assertFileExists(self::CACHE_PATH.'/routes.cache.php'); |
|
| 52 | + $this->assertFileExists(self::CACHE_PATH.'/routes.cache.php.meta'); |
|
| 53 | 53 | |
| 54 | - system("rm -rf " . escapeshellarg(self::CACHE_PATH)); |
|
| 54 | + system("rm -rf ".escapeshellarg(self::CACHE_PATH)); |
|
| 55 | 55 | |
| 56 | 56 | $crawler = $client->request('GET', '/articles/second'); |
| 57 | 57 | $this->assertTrue($client->getResponse()->isOk()); |
| 58 | 58 | $this->assertEquals($client->getResponse()->getContent(), 'Article second'); |
| 59 | 59 | |
| 60 | - $this->assertFileExists(self::CACHE_PATH . '/routes.cache.php'); |
|
| 61 | - $this->assertFileExists(self::CACHE_PATH . '/routes.cache.php.meta'); |
|
| 60 | + $this->assertFileExists(self::CACHE_PATH.'/routes.cache.php'); |
|
| 61 | + $this->assertFileExists(self::CACHE_PATH.'/routes.cache.php.meta'); |
|
| 62 | 62 | |
| 63 | 63 | } |
| 64 | 64 | |