12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- /**
- * Created by PhpStorm.
- * User: stanley-king
- * Date: 16/8/14
- * Time: 下午5:29
- */
- define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
- require_once(BASE_ROOT_PATH . '/fooder.php');
- require_once(BASE_ROOT_PATH . '/helper/activity_helper.php');
- require_once(BASE_ROOT_PATH . '/helper/goods_helper.php');
- class activity_helperTest extends PHPUnit_Framework_TestCase
- {
- public static function setUpBeforeClass()
- {
- Base::run_util();
- }
- public function testGift()
- {
- $helper = new goods_helper();
- $helper->get_summary(array(4127,4217));
- }
- public function testGroupbuy()
- {
- $activity = new activity_helper();
- $activity->groupbuy_list();
- }
- public function testXianshi()
- {
- $activity = new activity_helper();
- $activity->xianshi_list(6);
- }
- public function testMansong()
- {
- $activity = new activity_helper();
- $activity->mansong_list(6);
- }
- public function testBundling()
- {
- $activity = new activity_helper();
- $activity->bundling_list(6);
- }
- public function testBooth()
- {
- $activity = new activity_helper();
- $activity->booth_list(6);
- }
- public function testTakepart()
- {
- activity_helper::take_parted(30,$type);
- }
- }
|