activity_helperTest.php 903 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: stanley-king
  5. * Date: 16/8/14
  6. * Time: 下午5:29
  7. */
  8. define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
  9. require_once(BASE_ROOT_PATH . '/fooder.php');
  10. require_once(BASE_ROOT_PATH . '/helper/activity_helper.php');
  11. require_once(BASE_ROOT_PATH . '/helper/goods_helper.php');
  12. class activity_helperTest extends PHPUnit_Framework_TestCase
  13. {
  14. public static function setUpBeforeClass()
  15. {
  16. Base::run_util();
  17. }
  18. public function testGift()
  19. {
  20. $helper = new goods_helper();
  21. $helper->get_summary(array(4181),$related_goods);
  22. }
  23. public function testBundling()
  24. {
  25. $helper = new goods_helper();
  26. $ret = $helper->get_summary(array(2),$related_goods);
  27. }
  28. public function testSpu()
  29. {
  30. $helper = new goods_helper();
  31. $ret = $helper->get_spu(2629,4182,$err);
  32. }
  33. }