Exemplo n.º 1
0
 /**
  * Extension to the original {@link fail()} method which will add all data
  * in the buffer to the fail text.
  * 
  * @param string $text
  * @since 0.1.0
  */
 public static function fail($text)
 {
     $data = static::endBuffering();
     if ($data) {
         $text .= PHP_EOL . PHP_EOL . $data;
     }
     parent::fail($text);
 }