www.gusucode.com > KPPW众包威客PHP开源建站系统 v3.0源码程序 > KPPW/vendor/phpspec/phpspec/spec/PhpSpec/Process/ReRunner/PassthruRerunnerSpec.php
<?php /* * This file is part of PhpSpec, A php toolset to drive emergent * design by specification. * * (c) Marcello Duarte <marcello.duarte@gmail.com> * (c) Konstantin Kudryashov <ever.zet@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace spec\PhpSpec\Process\ReRunner; use PhpSpec\ObjectBehavior; use PhpSpec\Process\Context\ExecutionContextInterface; use Prophecy\Argument; use Symfony\Component\Process\PhpExecutableFinder; class PassthruRerunnerSpec extends ObjectBehavior { function let(PhpExecutableFinder $executableFinder, ExecutionContextInterface $executionContext) { $this->beConstructedThrough('withExecutionContext', array($executableFinder, $executionContext)); } function it_is_a_rerunner() { $this->shouldHaveType('PhpSpec\Process\ReRunner'); } function it_is_not_supported_when_php_process_is_not_found(PhpExecutableFinder $executableFinder) { $executableFinder->find()->willReturn(false); $this->isSupported()->shouldReturn(false); } }