IdenticalExpectation::__construct PHP Method

__construct() public method

Sets the value to compare against.
public __construct ( mixed $value, string $message = '%s' )
$value mixed Test value to match.
$message string Customised message on failure.
    public function __construct($value, $message = '%s')
    {
        parent::__construct($value, $message);
    }

Usage Example

示例#1
0
 /**
  *    Sets the value to compare against.
  *    @param string $method     Method to check.
  *    @param string $message    Customised message on failure.
  *    @return void
  */
 function __construct($name, $expected)
 {
     $this->name = $name;
     parent::__construct($expected);
 }
All Usage Examples Of IdenticalExpectation::__construct