Example #1
0
 public function test_it_should_throw_exception_on_incorrect_child_name()
 {
     $this->given($this->mockGenerator->orphanize('__construct'), $mockConfig = new \mock\Rezzza\Jobflow\JobConfig(), $mockConfig->getMockController()->getName = 'test')->if($job = new TestedClass($mockConfig))->exception(function () use($job) {
         $job->get('test');
     })->hasMessage('No child with name : "test" in job "test"');
 }
Example #2
0
 public function currentChild(Job $job)
 {
     return $job->get($this->current);
 }