12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- /**
- * Created by PhpStorm.
- * User: stanley-king
- * Date: 2017/4/26
- * Time: 上午11:55
- */
- define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
- require_once (BASE_ROOT_PATH . '/fooder.php');
- require_once (BASE_ROOT_PATH . '/helper/third_author/wxauthor.php');
- require_once (BASE_ROOT_PATH . '/helper/login_helper.php');
- class TestAuthor extends PHPUnit_Framework_TestCase
- {
- public static function setUpBeforeClass()
- {
- Base::run_util();
- }
- public function testWxauthor()
- {
- $author = new thrid_author\wxauthor();
- $author->enter();
- }
- public function testOnbind()
- {
- login_helper::onBinded('18911779278','3568');
- }
- public function testOrigin()
- {
- $val = 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_2 like Mac OS X) AppleWebKit/602.3.12 (KHTML, like Gecko) Mobile/14C92 MicroMessenger/6.5.7 NetType/WIFI Language/zh_CN';
- $pos = strpos($val,"MicroMessenger");
- }
- }
|