1234567891011121314151617181920212223242526272829303132 |
- <?php
- /**
- * Created by PhpStorm.
- * User: stanley-king
- * Date: 16/6/25
- * Time: 下午4:00
- */
- define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
- require_once(BASE_ROOT_PATH . '/fooder.php');
- require_once(BASE_ROOT_PATH . '/helper/relation_helper.php');
- require_once(BASE_ROOT_PATH . '/helper/session_helper.php');
- class user_helperTest extends PHPUnit_Framework_TestCase
- {
- public static function setUpBeforeClass()
- {
- Base::run_util();
- }
- public function testUpContacts()
- {
- $datas = array('13911129867','13911129868','13911129869','13911129870','13911129870');
- $jsData = json_encode($datas);
- $jsData = urlencode($jsData);
- session_helper::parse_contacts($jsData);
- }
- }
|