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

namespace specProphecyExceptionDoubler;

use 
PhpSpecObjectBehavior;
use 
specProphecyExceptionProphecy;

class 
MethodNotFoundExceptionSpec extends ObjectBehavior
{
    function 
let()
    {
        
$this->beConstructedWith('''User''getName', array(123));
    }

    function 
it_is_DoubleException()
    {
        
$this->shouldHaveType('ProphecyExceptionDoublerDoubleException');
    }

    function 
it_has_MethodName()
    {
        
$this->getMethodName()->shouldReturn('getName');
    }

    function 
it_has_classnamej()
    {
        
$this->getClassname()->shouldReturn('User');
    }

    function 
it_has_an_arguments_list()
    {
        
$this->getArguments()->shouldReturn(array(123));
    }

    function 
it_has_a_default_null_argument_list()
    {
        
$this->beConstructedWith('''User''getName');
        
$this->getArguments()->shouldReturn(null);
    }
}
Онлайн: 1
Реклама