Beispiel #1
0
 public function provideErrorBehavior()
 {
     $original = parent::provideErrorBehavior();
     $specificData = array('string pattern and array replacement' => array(array('[A-Z]', array(), ''), 'Parameter mismatch, pattern is a string while replacement is an array; pattern: [A-Z]'), 'incorrect patterns in array' => array(array(array('[A-Z]', '*', '[a-z]', '+'), '', ''), 'mbregex compile err: target of repeat operator is not specified; pattern: [A-Z], *, [a-z], +'));
     return $this->addCallback($original) + $specificData;
 }
Beispiel #2
0
 protected function executeAndFail($method, $args, $exceptionMessage)
 {
     // Change subject from string to array
     $args[1] = (array) $args[1];
     parent::executeAndFail($method, $args, $exceptionMessage);
 }