Esempio n. 1
0
 function testAll()
 {
     $y = Consultation::all();
     $this->assertType('array', $y);
     $this->assertEquals(2, count($y));
     $z = array_shift($y);
     $this->assertType('Consultation', $z);
     $this->assertEquals(2, $z->id);
 }