public static function shelf($arry = false) { $groupId = '207133170'; $shelf = new ShelfData(); $shelf->controlTwo(array($groupId, $groupId, $groupId)); if ($arry) { return $shelf->toArray(); } return $shelf; }
public function testControlTwo() { $shelf = new Shelf(); $data = $shelf->controlTwo(array('商品id', '商品ID')); $this->assertInstanceOf(Shelf::class, $data); }