This repository has been archived on 2025-01-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
$this->assertTrue(!isset($values[$token]),t("Token value for @token was not generated.",array('@type'=>$type,'@token'=>$token)));
}
elseif(!isset($replacements[$token])){
$this->fail(t("Token value for @token was not generated.",array('@type'=>$type,'@token'=>$token)));
}
elseif(!empty($options['regex'])){
$this->assertTrue(preg_match('/^'.$expected.'$/',$replacements[$token]),t("Token value for @token was '@actual', matching regular expression pattern '@expected'.",array('@type'=>$type,'@token'=>$token,'@actual'=>$replacements[$token],'@expected'=>$expected)));
}
else{
$this->assertIdentical($replacements[$token],$expected,t("Token value for @token was '@actual', expected value '@expected'.",array('@type'=>$type,'@token'=>$token,'@actual'=>$replacements[$token],'@expected'=>$expected)));