示例#1
0
文件: Job.php 项目: rezzza/jobflow
 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"');
 }
示例#2
0
 public function currentChild(Job $job)
 {
     return $job->get($this->current);
 }