Файл: gapps/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/IsIdenticalTest.php
Строк: 37
<?php
namespace HamcrestCore;
class IsIdenticalTest extends HamcrestAbstractMatcherTest
{
protected function createMatcher()
{
return HamcrestCoreIsIdentical::identicalTo('irrelevant');
}
public function testEvaluatesToTrueIfArgumentIsReferenceToASpecifiedObject()
{
$o1 = new stdClass();
$o2 = new stdClass();
assertThat($o1, identicalTo($o1));
assertThat($o2, not(identicalTo($o1)));
}
public function testReturnsReadableDescriptionFromToString()
{
$this->assertDescription('"ARG"', identicalTo('ARG'));
}
public function testReturnsReadableDescriptionFromToStringWhenInitialisedWithNull()
{
$this->assertDescription('null', identicalTo(null));
}
}