Esempio n. 1
0
 /**
  * Get description for error output.
  *
  * @param mixed $actual
  *
  * @return string
  */
 protected function getFailDescription($actual)
 {
     return str_replace(['contains ', 'exists', 'has ', 'is ', 'are ', 'matches ', 'starts with ', 'ends with ', 'reference ', 'not not '], ['does not contain ', 'does not exist', 'does not have ', 'is not ', 'are not ', 'does not match ', 'starts not with ', 'ends not with ', 'don\'t reference ', 'not '], $this->expected->getFailDescription($actual));
 }
Esempio n. 2
0
 /**
  * Get description for error output.
  *
  * @param array $actual
  *
  * @return string
  */
 protected function getFailDescription($actual)
 {
     return $this->expected->getFailDescription($actual[$this->number]) . sprintf(' on element #%d of %d', $this->number + 1, count($actual));
 }