PatternExpectation::__construct PHP Method

__construct() public method

Sets the value to compare against.
public __construct ( string $pattern, string $message = '%s' )
$pattern string Pattern to search for.
$message string Customised message on failure.
    public function __construct($pattern, $message = '%s')
    {
        parent::__construct($message);
        $this->pattern = $pattern;
    }

Usage Example

Exemplo n.º 1
0
 /**
  *    Sets the reject pattern
  *    @param string $pattern    Pattern to search for.
  *    @param string $message    Customised message on failure.
  *    @access public
  */
 function __construct($pattern, $message = '%s')
 {
     parent::__construct($pattern, $message);
 }