Exemplo n.º 1
0
 function it_should_find_executable(ContainerInterface $container)
 {
     $container->hasParameter($id = 'runner.default_dirs')->willReturn(false);
     $container->setParameter($id, Argument::any())->shouldBeCalled();
     $this->findExecutable('foo')->shouldReturn(false);
     $this->findExecutable('php')->shouldNotReturn(false);
     $this->findExecutable('phpspec')->shouldNotReturn(false);
 }