category_helperTest.php 760 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: stanley-king
  5. * Date: 16/7/2
  6. * Time: 下午9:06
  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/category_helper.php');
  11. require_once(BASE_ROOT_PATH . '/helper/brand_helper.php');
  12. class category_helperTest extends PHPUnit_Framework_TestCase
  13. {
  14. public static function setUpBeforeClass()
  15. {
  16. Base::run_util();
  17. }
  18. public function testCategories()
  19. {
  20. $cats = category_helper::instance()->categories();
  21. }
  22. public function testSearch()
  23. {
  24. $cats = category_helper::instance()->categories();
  25. }
  26. public static function tearDownAfterClass()
  27. {
  28. }
  29. }