public function testGetWholeCatalog()
 {
     // test to ensure that the object from an fsockopen is valid
     $catalogObjs = StockInventory::GetInventory();
     $this->assertTrue(count($catalogObjs) == 39);
 }
Esempio n. 2
0
 public function getStockInventory($page)
 {
     echo json_encode(StockInventory::GetInventory($page));
 }
Esempio n. 3
0
 public static function GetCatalog()
 {
     // test to ensure that the object from an fsockopen is valid
     return StockInventory::GetInventory(1);
 }