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