Exemple #1
0
 /**
  * Returns a string representation of the constraint.
  *
  * @return string
  */
 public function toString()
 {
     switch (get_class($this->constraint)) {
         case 'PHPUnit_Framework_Constraint_And':
         case 'PHPUnit_Framework_Constraint_Not':
         case 'PHPUnit_Framework_Constraint_Or':
             return 'not( ' . $this->constraint->toString() . ' )';
             break;
         default:
             return PHPUnit_Framework_Constraint::negate($this->constraint->toString());
     }
 }