/** * @depends testFetchInventoryList */ public function testGetQuantity($o) { $get = $o->getQuantity(0, 0); $this->assertEquals('1', $get); $this->assertFalse($o->getQuantity('wrong')); //not number $this->assertFalse($o->getQuantity(0, 'wrong')); //not number $this->assertFalse($this->object->getQuantity()); //not fetched yet for this object }