category_helperTest.php 710 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. class category_helperTest extends PHPUnit_Framework_TestCase
  12. {
  13. public static function setUpBeforeClass()
  14. {
  15. Base::run_util();
  16. }
  17. public function testCategories()
  18. {
  19. $cats = category_helper::instance()->categories();
  20. }
  21. public function testSearch()
  22. {
  23. $cats = category_helper::instance()->categories();
  24. }
  25. public static function tearDownAfterClass()
  26. {
  27. }
  28. }