<?php
namespace HamcrestCore;
class IsNullTest extends HamcrestAbstractMatcherTest
{
protected function createMatcher()
{
return HamcrestCoreIsNull::nullValue();
}
public function testEvaluatesToTrueIfArgumentIsNull()
{
assertThat(null, nullValue());
assertThat(self::ANY_NON_NULL_ARGUMENT, not(nullValue()));
assertThat(self::ANY_NON_NULL_ARGUMENT, notNullValue());
assertThat(null, not(notNullValue()));
}
}