![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /home/fdshops/public_html/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/ |
<?php namespace Hamcrest\Core; class IsSameTest extends \Hamcrest\AbstractMatcherTest { protected function createMatcher() { return \Hamcrest\Core\IsSame::sameInstance(new \stdClass()); } public function testEvaluatesToTrueIfArgumentIsReferenceToASpecifiedObject() { $o1 = new \stdClass(); $o2 = new \stdClass(); assertThat($o1, sameInstance($o1)); assertThat($o2, not(sameInstance($o1))); } public function testReturnsReadableDescriptionFromToString() { $this->assertDescription('sameInstance("ARG")', sameInstance('ARG')); } public function testReturnsReadableDescriptionFromToStringWhenInitialisedWithNull() { $this->assertDescription('sameInstance(null)', sameInstance(null)); } }