for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: pjxh
* Date: 15-11-1
* Time: 下午5:13
*/
namespace Test\Data;
use Overtrue\Wechat\Shop\Data\Shelf;
class ShelfTest extends \PHPUnit_Framework_TestCase
{
public function testControlOne()
$shelf = new Shelf();
$data = $shelf->controlOne('1','id');
$this->assertInstanceOf(Shelf::class,$data);
}
public function testControlTwo()
$data = $shelf->controlTwo(array('商品id','商品ID'));
public function testControlThree()
$data = $shelf->controlThree('商品ID','img');
public function testControlFour()
$data = $shelf->controlFour(array(array('商品id','img'),array('商品id','img')));
public function testControlFive()
$data = $shelf->controlFive(array('商品id','商品ID'),'背景图');