Commit da204f76 authored by Fabien Potencier's avatar Fabien Potencier

fixed some tests

parent 06d5555f
......@@ -14,6 +14,7 @@ namespace Silex\Tests;
use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Silex\Provider\ServiceControllerServiceProvider;
/**
* Callback as services test cases.
......@@ -27,6 +28,7 @@ class CallbackServicesTest extends \PHPUnit_Framework_TestCase
public function testCallbacksAsServices()
{
$app = new Application();
$app->register(new ServiceControllerServiceProvider());
$app['service'] = $app->share(function () {
return new self();
......@@ -50,10 +52,10 @@ class CallbackServicesTest extends \PHPUnit_Framework_TestCase
$app->terminate($request, $response);
$this->assertEquals(array(
'CONVERT',
'BEFORE APP',
'ON REQUEST',
'BEFORE',
'CONVERT',
'ERROR',
'AFTER',
'AFTER APP',
......
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