| 1 | <?php |
||
| 9 | class InflectorSpec extends ObjectBehavior |
||
| 10 | { |
||
| 11 | function let(NamespaceDetectorInterface $detector) |
||
| 12 | { |
||
| 13 | $this->beConstructedWith($detector); |
||
| 14 | |||
| 15 | $detector->detect()->willReturn('App'); |
||
| 16 | } |
||
| 17 | |||
| 18 | function it_is_initializable() |
||
| 19 | { |
||
| 20 | $this->shouldHaveType('Cerbero\Workflow\Inflectors\Inflector'); |
||
| 21 | $this->shouldHaveType('Cerbero\Workflow\Inflectors\InflectorInterface'); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @testdox It returns itself after setting the word to inflect. |
||
| 26 | * |
||
| 27 | * @author Andrea Marco Sartori |
||
| 28 | * @return void |
||
| 29 | */ |
||
| 30 | public function it_returns_itself_after_setting_the_word_to_inflect() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @testdox It inflects the request. |
||
| 37 | * |
||
| 38 | * @author Andrea Marco Sartori |
||
| 39 | * @return void |
||
| 40 | */ |
||
| 41 | public function it_inflects_the_request() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @testdox It inflects the job. |
||
| 50 | * |
||
| 51 | * @author Andrea Marco Sartori |
||
| 52 | * @return void |
||
| 53 | */ |
||
| 54 | public function it_inflects_the_job() |
||
| 60 | } |
||
| 61 |