@@ -11,7 +11,6 @@ |
||
| 11 | 11 | use Todo\Domain\Service\TaskValidationService; |
| 12 | 12 | use Todo\Domain\Task; |
| 13 | 13 | use PhpSpec\ObjectBehavior; |
| 14 | -use Prophecy\Argument; |
|
| 15 | 14 | |
| 16 | 15 | class CommandSpec extends ObjectBehavior |
| 17 | 16 | { |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use Todo\Domain\Repository\TaskRepositoryInterface; |
| 8 | 8 | use Todo\Domain\Task; |
| 9 | 9 | use PhpSpec\ObjectBehavior; |
| 10 | -use Prophecy\Argument; |
|
| 11 | 10 | |
| 12 | 11 | class QuerySpec extends ObjectBehavior |
| 13 | 12 | { |
@@ -7,10 +7,8 @@ |
||
| 7 | 7 | use Todo\Domain\Exception\TaskNotFoundException; |
| 8 | 8 | use Todo\Domain\Factory\TaskFactory; |
| 9 | 9 | use Todo\Domain\Repository\TaskRepositoryInterface; |
| 10 | -use Todo\Domain\Service\TaskValidationService; |
|
| 11 | 10 | use Todo\Domain\Task; |
| 12 | 11 | use PhpSpec\ObjectBehavior; |
| 13 | -use Prophecy\Argument; |
|
| 14 | 12 | |
| 15 | 13 | class TaskFactorySpec extends ObjectBehavior |
| 16 | 14 | { |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use Todo\Domain\Repository\TaskRepositoryInterface; |
| 9 | 9 | use Todo\Domain\Service\TaskValidationService; |
| 10 | 10 | use PhpSpec\ObjectBehavior; |
| 11 | -use Prophecy\Argument; |
|
| 12 | 11 | use Todo\Domain\Task; |
| 13 | 12 | |
| 14 | 13 | class TaskValidationServiceSpec extends ObjectBehavior |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Todo\Domain\Specification\TaskNameIsNotEmptySpecification; |
| 6 | 6 | use PhpSpec\ObjectBehavior; |
| 7 | -use Prophecy\Argument; |
|
| 8 | 7 | |
| 9 | 8 | class TaskNameIsNotEmptySpecificationSpec extends ObjectBehavior |
| 10 | 9 | { |
@@ -3,12 +3,10 @@ |
||
| 3 | 3 | namespace spec\Todo\Domain\Specification; |
| 4 | 4 | |
| 5 | 5 | use Todo\Domain\Exception\TaskNotFoundException; |
| 6 | -use Todo\Domain\Factory\TaskFactory; |
|
| 7 | 6 | use Todo\Domain\Repository\TaskRepositoryInterface; |
| 8 | 7 | use Todo\Domain\Specification\TaskNameIsUniqueSpecification; |
| 9 | 8 | use Todo\Domain\Task; |
| 10 | 9 | use PhpSpec\ObjectBehavior; |
| 11 | -use Prophecy\Argument; |
|
| 12 | 10 | |
| 13 | 11 | class TaskNameIsUniqueSpecificationSpec extends ObjectBehavior |
| 14 | 12 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Todo\Domain\Task; |
| 6 | 6 | use PhpSpec\ObjectBehavior; |
| 7 | -use Prophecy\Argument; |
|
| 8 | 7 | |
| 9 | 8 | class TaskSpec extends ObjectBehavior |
| 10 | 9 | { |
@@ -4,7 +4,6 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\Form\FormFactoryInterface; |
| 6 | 6 | use Symfony\Component\HttpFoundation\Request; |
| 7 | -use Symfony\Component\HttpFoundation\Session\Session; |
|
| 8 | 7 | use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException; |
| 9 | 8 | use Todo\Application\Task\Command; |
| 10 | 9 | use Todo\Application\Task\Exception\TaskCannotBeRemovedException; |
@@ -14,8 +13,6 @@ discard block |
||
| 14 | 13 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 15 | 14 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 16 | 15 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
| 17 | -use Todo\Domain\Exception\TaskNameIsAlreadyExistedException; |
|
| 18 | -use Todo\Domain\Exception\TaskNameIsEmptyException; |
|
| 19 | 16 | use Todo\Domain\Exception\TaskNotFoundException; |
| 20 | 17 | use Todo\Domain\Task; |
| 21 | 18 | use Web\FrontendBundle\Form\CreateTaskForm; |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | * Adds a mandatory requirement in form of a php.ini configuration. |
| 224 | 224 | * |
| 225 | 225 | * @param string $cfgName The configuration name used for ini_get() |
| 226 | - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 226 | + * @param boolean|string $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 227 | 227 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement |
| 228 | 228 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. |
| 229 | 229 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | * Adds an optional recommendation in form of a php.ini configuration. |
| 242 | 242 | * |
| 243 | 243 | * @param string $cfgName The configuration name used for ini_get() |
| 244 | - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 244 | + * @param string|false $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 245 | 245 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement |
| 246 | 246 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. |
| 247 | 247 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. |