| 1 | <?php |
||
| 10 | class RouteDispatcherFactorySpec extends ObjectBehavior |
||
| 11 | { |
||
| 12 | |||
| 13 | function let(Container $container) |
||
| 14 | { |
||
| 15 | $this->beConstructedWith($container); |
||
| 16 | } |
||
| 17 | |||
| 18 | function it_creates_route_dispatcher(Route $route, Container $container) |
||
| 19 | { |
||
| 20 | $this->create($route)->shouldBeLike( |
||
| 21 | new RouteDispatcher($route->getWrappedObject(), $container->getWrappedObject()) |
||
| 22 | ); |
||
| 23 | } |
||
| 24 | |||
| 25 | function it_is_initializable() |
||
| 26 | { |
||
| 27 | $this->shouldImplement(\Venta\Contracts\Routing\RouteDispatcherFactory::class); |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 31 |