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 IsAnythingTest extends \Hamcrest\AbstractMatcherTest
5
{
6
 
7
    protected function createMatcher()
8
    {
9
        return \Hamcrest\Core\IsAnything::anything();
10
    }
11
 
12
    public function testAlwaysEvaluatesToTrue()
13
    {
14
        assertThat(null, anything());
15
        assertThat(new \stdClass(), anything());
16
        assertThat('hi', anything());
17
    }
18
 
19
    public function testHasUsefulDefaultDescription()
20
    {
21
        $this->assertDescription('ANYTHING', anything());
22
    }
23
 
24
    public function testCanOverrideDescription()
25
    {
26
        $description = 'description';
27
        $this->assertDescription($description, anything($description));
28
    }
29
}