示例#1
0
 function testUndone()
 {
     $y = Consultation::undone();
     $this->assertType('array', $y);
     $this->assertEquals(1, count($y));
     $z = array_shift($y);
     $this->assertType('Consultation', $z);
     $this->assertEquals(2, $z->id);
 }