Example #1
0
 public function __toString()
 {
     $base = parent::__toString();
     $expected = implode(" or ", $this->expected);
     $base .= "Expected: {$expected}\nFound:{$this->found}";
     return $base;
 }
Example #2
0
 public function __toString()
 {
     $base = parent::__toString();
     $expected = implode(" or ", $this->expected);
     if (!trim($expected) == '') {
         $base .= "Expected: {$expected}\n";
     }
     if (!trim($this->found) == '') {
         $base .= "Found:{$this->found}\n";
     }
     return $base;
 }