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

namespace specProphecyExceptionDoubler;

use 
PhpSpecObjectBehavior;
use 
specProphecyExceptionProphecy;

class 
ClassCreatorExceptionSpec extends ObjectBehavior
{
    
/**
     * @param ProphecyDoublerGeneratorNodeClassNode $node
     */
    
function let($node)
    {
        
$this->beConstructedWith(''$node);
    }

    function 
it_is_a_prophecy_exception()
    {
        
$this->shouldBeAnInstanceOf('ProphecyExceptionException');
        
$this->shouldBeAnInstanceOf('ProphecyExceptionDoublerDoublerException');
    }

    function 
it_contains_a_reflected_node($node)
    {
        
$this->getClassNode()->shouldReturn($node);
    }
}
Онлайн: 6
Реклама