ok
Direktori : /home2/selectio/www/3-idiots/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/ |
Current File : /home2/selectio/www/3-idiots/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsSameTest.php |
<?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)); } }