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
/*
5
 Copyright (c) 2009 hamcrest.org
6
 */
7
use Hamcrest\Description;
8
 
9
/**
10
 * The same as {@link Hamcrest\Core\IsSame} but with slightly different
11
 * semantics.
12
 */
13
class IsIdentical extends IsSame
14
{
15
 
16
    private $_value;
17
 
18
    public function __construct($value)
19
    {
20
        parent::__construct($value);
21
        $this->_value = $value;
22
    }
23
 
24
    public function describeTo(Description $description)
25
    {
26
        $description->appendValue($this->_value);
27
    }
28
 
29
    /**
30
     * Tests of the value is identical to $value as tested by the "===" operator.
31
     *
32
     * @factory
33
     */
34
    public static function identicalTo($value)
35
    {
36
        return new self($value);
37
    }
38
}