Commit fa1a8005 authored by Fabien Potencier's avatar Fabien Potencier

Merge remote branch 'igorw/master'

* igorw/master:
  fix extension test namespaces
  rename WebTestCase::{createApp => createApplication}
  do not read files twice when compiling
parents 0c4b6946 821b189f
...@@ -72,7 +72,7 @@ class Compiler ...@@ -72,7 +72,7 @@ class Compiler
$path = str_replace(realpath(__DIR__.'/../..').'/', '', $file->getRealPath()); $path = str_replace(realpath(__DIR__.'/../..').'/', '', $file->getRealPath());
$content = file_get_contents($file); $content = file_get_contents($file);
if ($strip) { if ($strip) {
$content = Kernel::stripComments(file_get_contents($file)); $content = Kernel::stripComments($content);
} }
$phar->addFromString($path, $content); $phar->addFromString($path, $content);
......
...@@ -31,15 +31,15 @@ abstract class WebTestCase extends BaseWebTestCase ...@@ -31,15 +31,15 @@ abstract class WebTestCase extends BaseWebTestCase
*/ */
public function setUp() public function setUp()
{ {
$this->app = $this->createApp(); $this->app = $this->createApplication();
} }
/** /**
* Creates the application (HttpKernel, most likely Framework). * Creates the application.
* *
* @return Symfony\Component\HttpKernel\HttpKernel * @return Symfony\Component\HttpKernel\HttpKernel
*/ */
abstract public function createApp(); abstract public function createApplication();
/** /**
* Creates a Client. * Creates a Client.
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* with this source code in the file LICENSE. * with this source code in the file LICENSE.
*/ */
namespace Silex\Tests; namespace Silex\Tests\Extension;
use Monolog\Handler\TestHandler; use Monolog\Handler\TestHandler;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* with this source code in the file LICENSE. * with this source code in the file LICENSE.
*/ */
namespace Silex\Tests; namespace Silex\Tests\Extension;
use Silex\Application; use Silex\Application;
use Silex\Extension\SessionExtension; use Silex\Extension\SessionExtension;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* with this source code in the file LICENSE. * with this source code in the file LICENSE.
*/ */
namespace Silex\Tests; namespace Silex\Tests\Extension;
use Silex\Application; use Silex\Application;
use Silex\Extension\TwigExtension; use Silex\Extension\TwigExtension;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* with this source code in the file LICENSE. * with this source code in the file LICENSE.
*/ */
namespace Silex\Tests; namespace Silex\Tests\Extension;
use Silex\Application; use Silex\Application;
use Silex\Extension\UrlGeneratorExtension; use Silex\Extension\UrlGeneratorExtension;
......
...@@ -21,7 +21,7 @@ use Silex\WebTestCase; ...@@ -21,7 +21,7 @@ use Silex\WebTestCase;
*/ */
class WebTestCaseTest extends WebTestCase class WebTestCaseTest extends WebTestCase
{ {
public function createApp() public function createApplication()
{ {
$app = new Application(); $app = new Application();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment