assertEquals() 공개 메소드

Asserts that the given table matches this table.
public assertEquals ( PHPUnit_Extensions_Database_DataSet_ITable $other )
$other PHPUnit_Extensions_Database_DataSet_ITable
예제 #1
0
 /**
  * Determines whether or not the given table matches the table used to
  * create this constraint.
  *
  * @param PHPUnit_Extensions_Database_DataSet_ITable $other
  * @return bool
  */
 public function evaluate($other)
 {
     if ($other instanceof PHPUnit_Extensions_Database_DataSet_ITable) {
         try {
             $this->value->assertEquals($other);
             return TRUE;
         } catch (Exception $e) {
             $this->failure_reason = $e->getMessage();
             return FALSE;
         }
     } else {
         throw new InvalidArgumentException("PHPUnit_Extensions_Database_DataSet_ITable expected");
     }
 }