isValid() 공개 메소드

부터: 2.0
public isValid ( ) : boolean
리턴 boolean
예제 #1
0
 public function testMergeWithStatus()
 {
     $result1 = new Result();
     $result1->setResult(true);
     // merging this should cause the $result1 to no longer be valid
     $result2 = new Result();
     $result2->setResult(false);
     $result1->merge($result2);
     $this->assertFalse($result1->isValid());
 }
예제 #2
0
 public function testSetGetResult()
 {
     $this->object->setResult(true);
     $this->assertTrue($this->object->isValid());
 }