Esempio n. 1
0
 function testPayments()
 {
     $x = new Consultation(1);
     $y = $x->payments();
     $this->assertType('array', $y);
     $this->assertEquals(1, count($y));
     $z = array_shift($y);
     $this->assertType('Payment', $z);
     $this->assertEquals(5, $z->id);
     $x = new Consultation(2);
     $y = $x->payments();
     $this->assertEquals(0, count($y));
 }