Ejemplo n.º 1
0
/**
 * Matches if value is a string equal to $string, regardless of whitespace.
 */
function equalToIgnoringWhiteSpace($string)
{
    require_once 'Hamcrest/Text/IsEqualIgnoringWhiteSpace.php';
    return Hamcrest_Text_IsEqualIgnoringWhiteSpace::equalToIgnoringWhiteSpace($string);
}
 public function setUp()
 {
     $this->_matcher = Hamcrest_Text_IsEqualIgnoringWhiteSpace::equalToIgnoringWhiteSpace("Hello World   how\n are we? ");
 }