Skip to content

Commit

Permalink
fixed some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Nov 24, 2014
1 parent 06d5555 commit da204f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Silex/Tests/CallbackServicesTest.php
Expand Up @@ -14,6 +14,7 @@
use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Silex\Provider\ServiceControllerServiceProvider;

/**
* Callback as services test cases.
Expand All @@ -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();
Expand All @@ -50,10 +52,10 @@ public function testCallbacksAsServices()
$app->terminate($request, $response);

$this->assertEquals(array(
'CONVERT',
'BEFORE APP',
'ON REQUEST',
'BEFORE',
'CONVERT',
'ERROR',
'AFTER',
'AFTER APP',
Expand Down

0 comments on commit da204f7

Please sign in to comment.