for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of expect package.
*
* (c) Noritaka Horio <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace expect\matcher;
* Alias of ToEuqal.
* <code>
* $matcher = new ToBe(100);
* $matcher->match(100); //return true
* $matcher->match(99); //return false
* @author Noritaka Horio <[email protected]>
* @copyright Noritaka Horio <[email protected]>
* @see expect\matcher\ToEqual
final class ToBe implements ReportableMatcher
{
use EqualMatcherDelegatable;
* Create a new matcher.
* @param mixed $expected expected value
public function __construct($expected)
$this->equalMatcher = new ToEqual($expected);
}