Permalink
Browse files

More work getting the *bootstrap* process up and running.

  • Loading branch information...
1 parent e403c72 commit 5e25cf4718ac776f40a2a4c7914ae9a998fe317b @trq trq committed Feb 25, 2013
@@ -47,11 +47,6 @@ public function testTriggersEvents()
$assetManager = m::mock('Proem\Service\AssetManagerInterface');
$assetManager
- ->shouldReceive('alias')
- ->once()
- ->andReturn($assetManager);
-
- $assetManager
->shouldReceive('singleton')
->once()
->andReturn($assetManager);
@@ -49,11 +49,6 @@ public function testCanTriggerEvent()
$assetManager = m::mock('Proem\Service\AssetManagerInterface');
$assetManager
- ->shouldReceive('alias')
- ->once()
- ->andReturn($assetManager);
-
- $assetManager
->shouldReceive('singleton')
->once()
->andReturn($assetManager);
@@ -42,24 +42,26 @@ public function testCanTriggerEvent()
$eventManager
->shouldReceive('trigger')
->with('Proem\Signal\EventInterface', 'closure')
+ ->once()
+
+ ->shouldReceive('trigger')
+ ->with('Proem\Signal\EventInterface')
->once();
$assetManager = m::mock('Proem\Service\AssetManagerInterface');
$assetManager
- ->shouldReceive('alias')
+ ->shouldReceive('singleton')
->once()
- ->andReturn($assetManager);
+ ->andReturn($assetManager)
- $assetManager
- ->shouldReceive('singleton')
+ ->shouldReceive('resolve')
+ ->with('routeManager')
->once()
- ->andReturn($assetManager);
- $assetManager
->shouldReceive('resolve')
->with('eventManager')
- ->once()
+ ->twice()
->andReturn($eventManager);
$route = new Route;

0 comments on commit 5e25cf4

Please sign in to comment.