www.gusucode.com > KPPW众包威客PHP开源建站系统 v3.0源码程序 > KPPW/vendor/phpspec/phpspec/spec/PhpSpec/Exception/Example/StopOnFailureExceptionSpec.php

    <?php

namespace spec\PhpSpec\Exception\Example;

use PhpSpec\Event\ExampleEvent;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;

class StopOnFailureExceptionSpec extends ObjectBehavior
{
    function let()
    {
        $this->beConstructedWith('Message', 0, null, 1);
    }

    function it_is_an_example_exception()
    {
        $this->shouldBeAnInstanceOf('PhpSpec\Exception\Example\ExampleException');
    }

    function it_has_a_the_result_of_the_last_spec()
    {
        $this->getResult()->shouldReturn(1);
    }
}