-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from solutionDrive/feature/MAIN-117-extend-mult…
…istep-configuration Feature/main 117 extend multistep configuration
- Loading branch information
Showing
13 changed files
with
192 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace spec\solutionDrive\MultiStepBundle\StepChecker; | ||
|
||
use PhpSpec\ObjectBehavior; | ||
use solutionDrive\MultiStepBundle\StepChecker\DefaultStepRequiredChecker; | ||
use solutionDrive\MultiStepBundle\StepChecker\StepRequiredCheckerInterface; | ||
|
||
class DefaultStepRequiredCheckerSpec extends ObjectBehavior | ||
{ | ||
function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(DefaultStepRequiredChecker::class); | ||
} | ||
|
||
function it_implements_step_required_checker_interface() | ||
{ | ||
$this->shouldImplement(StepRequiredCheckerInterface::class); | ||
} | ||
|
||
function it_returns_true() | ||
{ | ||
$this->check()->shouldReturn(true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
/* | ||
* Created by solutionDrive GmbH | ||
* | ||
* @copyright 2018 solutionDrive GmbH | ||
*/ | ||
|
||
namespace solutionDrive\MultiStepBundle\StepChecker; | ||
|
||
class DefaultStepRequiredChecker implements StepRequiredCheckerInterface | ||
{ | ||
public function check(): bool | ||
{ | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
/* | ||
* Created by solutionDrive GmbH | ||
* | ||
* @copyright 2018 solutionDrive GmbH | ||
*/ | ||
|
||
namespace solutionDrive\MultiStepBundle\StepChecker; | ||
|
||
interface StepRequiredCheckerInterface | ||
{ | ||
public function check(): bool; | ||
} |