@@ -3,12 +3,12 @@ |
||
| 3 | 3 | namespace spec\Slick\WebStack\Console\Command\Task; |
| 4 | 4 | |
| 5 | 5 | use League\Flysystem\FilesystemInterface; |
| 6 | -use Slick\Template\TemplateEngineInterface; |
|
| 7 | -use Slick\WebStack\Console\Command\Task\AskForNamespace\NameSpaceEntry; |
|
| 8 | -use Slick\WebStack\Console\Command\Task\CreateServicesFile; |
|
| 9 | 6 | use PhpSpec\ObjectBehavior; |
| 10 | 7 | use Prophecy\Argument; |
| 8 | +use Slick\Template\TemplateEngineInterface; |
|
| 11 | 9 | use Slick\WebStack\Console\Command\TaskInterface; |
| 10 | +use Slick\WebStack\Console\Command\Task\AskForNamespace\NameSpaceEntry; |
|
| 11 | +use Slick\WebStack\Console\Command\Task\CreateServicesFile; |
|
| 12 | 12 | use Symfony\Component\Console\Input\InputInterface; |
| 13 | 13 | use Symfony\Component\Console\Output\OutputInterface; |
| 14 | 14 | |
@@ -2,10 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace spec\Slick\WebStack\Console\Service; |
| 4 | 4 | |
| 5 | +use PhpSpec\ObjectBehavior; |
|
| 5 | 6 | use Slick\Di\ContainerInterface; |
| 6 | 7 | use Slick\WebStack\Console\Service\ContainerFactory; |
| 7 | -use PhpSpec\ObjectBehavior; |
|
| 8 | -use Prophecy\Argument; |
|
| 9 | 8 | use Symfony\Component\Console\Command\Command; |
| 10 | 9 | |
| 11 | 10 | class ContainerFactorySpec extends ObjectBehavior |
@@ -2,9 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace spec\Slick\WebStack; |
| 4 | 4 | |
| 5 | -use Slick\WebStack\Controller; |
|
| 6 | 5 | use PhpSpec\ObjectBehavior; |
| 7 | -use Prophecy\Argument; |
|
| 6 | +use Slick\WebStack\Controller; |
|
| 8 | 7 | |
| 9 | 8 | class ControllerSpec extends ObjectBehavior |
| 10 | 9 | { |
@@ -4,11 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Aura\Router\Route; |
| 6 | 6 | use PhpSpec\Exception\Example\FailureException; |
| 7 | -use PhpSpec\Wrapper\Subject; |
|
| 7 | +use PhpSpec\ObjectBehavior; |
|
| 8 | 8 | use Slick\WebStack\Http\Dispatcher\ControllerDispatch; |
| 9 | 9 | use Slick\WebStack\Http\Dispatcher\ControllerDispatchInflector; |
| 10 | -use PhpSpec\ObjectBehavior; |
|
| 11 | -use Prophecy\Argument; |
|
| 12 | 10 | use Slick\WebStack\Http\Dispatcher\ControllerDispatchInflectorInterface; |
| 13 | 11 | |
| 14 | 12 | class ControllerDispatchInflectorSpec extends ObjectBehavior |
@@ -74,6 +74,9 @@ |
||
| 74 | 74 | return $this; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | + /** |
|
| 78 | + * @param integer $test |
|
| 79 | + */ |
|
| 77 | 80 | public function index($test) |
| 78 | 81 | { |
| 79 | 82 | // Do controller stuff |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace spec\Slick\WebStack\Http\Dispatcher; |
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | -use Slick\WebStack\Controller\ControllerContextInterface; |
|
| 7 | 6 | use Slick\WebStack\ControllerInterface; |
| 7 | +use Slick\WebStack\Controller\ControllerContextInterface; |
|
| 8 | 8 | use Slick\WebStack\Exception\UndefinedControllerMethodException; |
| 9 | 9 | use Slick\WebStack\Http\Dispatcher\ControllerDispatch; |
| 10 | 10 | use Slick\WebStack\Http\Dispatcher\ControllerInvoker; |
@@ -52,11 +52,11 @@ |
||
| 52 | 52 | /** |
| 53 | 53 | * Set SUT object |
| 54 | 54 | * |
| 55 | - * @param Collaborator|ControllerDispatchInflectorInterface $controllerDispatchInflector |
|
| 56 | - * @param Collaborator|ControllerInvokerInterface $invoker |
|
| 57 | - * @param Collaborator|ContainerInterface $container |
|
| 58 | - * @param Collaborator|TestController $controller |
|
| 59 | - * @param Collaborator|ControllerContextInterface $context |
|
| 55 | + * @param ControllerDispatchInflectorInterface $controllerDispatchInflector |
|
| 56 | + * @param ControllerInvokerInterface $invoker |
|
| 57 | + * @param ContainerInterface $container |
|
| 58 | + * @param TestController $controller |
|
| 59 | + * @param ControllerContextInterface $context |
|
| 60 | 60 | */ |
| 61 | 61 | function let( |
| 62 | 62 | ControllerDispatchInflectorInterface $controllerDispatchInflector, |
@@ -12,14 +12,13 @@ |
||
| 12 | 12 | use Slick\Di\Exception\ClassNotFoundException; |
| 13 | 13 | use Slick\Http\Response; |
| 14 | 14 | use Slick\Http\Server\MiddlewareInterface; |
| 15 | -use Slick\WebStack\Controller\Context; |
|
| 16 | -use Slick\WebStack\Controller\ControllerContextInterface; |
|
| 17 | 15 | use Slick\WebStack\ControllerInterface; |
| 16 | +use Slick\WebStack\Controller\ControllerContextInterface; |
|
| 18 | 17 | use Slick\WebStack\Exception\ControllerNotFoundException; |
| 18 | +use Slick\WebStack\Http\DispatcherMiddleware; |
|
| 19 | 19 | use Slick\WebStack\Http\Dispatcher\ControllerDispatch; |
| 20 | 20 | use Slick\WebStack\Http\Dispatcher\ControllerDispatchInflectorInterface; |
| 21 | 21 | use Slick\WebStack\Http\Dispatcher\ControllerInvokerInterface; |
| 22 | -use Slick\WebStack\Http\DispatcherMiddleware; |
|
| 23 | 22 | use Slick\WebStack\Service\FlashMessages; |
| 24 | 23 | |
| 25 | 24 | class DispatcherMiddlewareSpec extends ObjectBehavior |
@@ -3,11 +3,10 @@ |
||
| 3 | 3 | namespace spec\Slick\WebStack\Http\Renderer\TemplateExtension; |
| 4 | 4 | |
| 5 | 5 | use PhpSpec\Exception\Example\FailureException; |
| 6 | -use Slick\WebStack\Http\Renderer\TemplateExtension\HtmlExtension; |
|
| 7 | 6 | use PhpSpec\ObjectBehavior; |
| 8 | -use Prophecy\Argument; |
|
| 9 | -use Slick\WebStack\Service\UriGeneratorInterface; |
|
| 10 | 7 | use Slick\Template\EngineExtensionInterface; |
| 8 | +use Slick\WebStack\Http\Renderer\TemplateExtension\HtmlExtension; |
|
| 9 | +use Slick\WebStack\Service\UriGeneratorInterface; |
|
| 11 | 10 | |
| 12 | 11 | /** |
| 13 | 12 | * Html Extension Spec |
@@ -3,9 +3,8 @@ |
||
| 3 | 3 | namespace spec\Slick\WebStack\Http\Renderer; |
| 4 | 4 | |
| 5 | 5 | use Aura\Router\Route; |
| 6 | -use Slick\WebStack\Http\Renderer\ViewInflector; |
|
| 7 | 6 | use PhpSpec\ObjectBehavior; |
| 8 | -use Prophecy\Argument; |
|
| 7 | +use Slick\WebStack\Http\Renderer\ViewInflector; |
|
| 9 | 8 | use Slick\WebStack\Http\Renderer\ViewInflectorInterface; |
| 10 | 9 | |
| 11 | 10 | /** |
@@ -3,16 +3,15 @@ |
||
| 3 | 3 | namespace spec\Slick\WebStack\Http; |
| 4 | 4 | |
| 5 | 5 | use Aura\Router\Route; |
| 6 | +use PhpSpec\ObjectBehavior; |
|
| 7 | +use Prophecy\Argument; |
|
| 6 | 8 | use Psr\Http\Message\ResponseInterface; |
| 7 | 9 | use Psr\Http\Message\ServerRequestInterface; |
| 8 | 10 | use Slick\Http\Server\MiddlewareInterface; |
| 9 | 11 | use Slick\Http\Stream; |
| 10 | -use Slick\WebStack\Http\Renderer\ViewInflectorInterface; |
|
| 11 | -use Slick\WebStack\Http\RendererMiddleware; |
|
| 12 | -use PhpSpec\ObjectBehavior; |
|
| 13 | -use Prophecy\Argument; |
|
| 14 | -use Slick\Template\Template; |
|
| 15 | 12 | use Slick\Template\TemplateEngineInterface; |
| 13 | +use Slick\WebStack\Http\RendererMiddleware; |
|
| 14 | +use Slick\WebStack\Http\Renderer\ViewInflectorInterface; |
|
| 16 | 15 | |
| 17 | 16 | /** |
| 18 | 17 | * RendererMiddlewareSpec |