Вход Регистрация
Файл: src/vendor/phpspec/prophecy/spec/Prophecy/Exception/Prophecy/MethodProphecyExceptionSpec.php
Строк: 23
<?php

namespace specProphecyExceptionProphecy;

use 
PhpSpecObjectBehavior;
use 
specProphecyExceptionProphecy;

class 
MethodProphecyExceptionSpec extends ObjectBehavior
{
    
/**
     * @param ProphecyProphecyObjectProphecy $objectProphecy
     * @param ProphecyProphecyMethodProphecy $methodProphecy
     */
    
function let($objectProphecy$methodProphecy)
    {
        
$methodProphecy->getObjectProphecy()->willReturn($objectProphecy);

        
$this->beConstructedWith('message'$methodProphecy);
    }

    function 
it_extends_DoubleException()
    {
        
$this->shouldBeAnInstanceOf('ProphecyExceptionProphecyObjectProphecyException');
    }

    function 
it_holds_a_stub_reference($methodProphecy)
    {
        
$this->getMethodProphecy()->shouldReturn($methodProphecy);
    }
}
Онлайн: 6
Реклама