Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
namespace Hamcrest\Core;
3
 
4
class IsNullTest extends \Hamcrest\AbstractMatcherTest
5
{
6
 
7
    protected function createMatcher()
8
    {
9
        return \Hamcrest\Core\IsNull::nullValue();
10
    }
11
 
12
    public function testEvaluatesToTrueIfArgumentIsNull()
13
    {
14
        assertThat(null, nullValue());
15
        assertThat(self::ANY_NON_NULL_ARGUMENT, not(nullValue()));
16
 
17
        assertThat(self::ANY_NON_NULL_ARGUMENT, notNullValue());
18
        assertThat(null, not(notNullValue()));
19
    }
20
}