コード例 #1
0
ファイル: ShelfTest.php プロジェクト: Jeffliu/wechat
 public static function shelf($arry = false)
 {
     $groupId = '207133170';
     $shelf = new ShelfData();
     $shelf->controlTwo(array($groupId, $groupId, $groupId));
     if ($arry) {
         return $shelf->toArray();
     }
     return $shelf;
 }
コード例 #2
0
ファイル: ShelfTest.php プロジェクト: Jeffliu/wechat
 public function testControlFive()
 {
     $shelf = new Shelf();
     $data = $shelf->controlFive(array('商品id', '商品ID'), '背景图');
     $this->assertInstanceOf(Shelf::class, $data);
 }