123456789101112131415161718192021222324252627282930313233 |
- <?php
- /**
- * Created by PhpStorm.
- * User: stanley-king
- * Date: 2017/12/14
- * Time: 下午4:59
- */
- define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
- require_once(BASE_ROOT_PATH . '/fooder.php');
- require_once(BASE_ROOT_PATH . '/helper/search/tcp_client.php');
- require_once(BASE_ROOT_PATH . '/helper/room/client.php');
- class TestRoom extends PHPUnit_Framework_TestCase
- {
- public static function setUpBeforeClass()
- {
- Base::run_util();
- }
- public function testCreateBargain()
- {
- room\room_client::instance()->create_bargain();
- }
- public function testCreateChat()
- {
- $user = 36490;
- $ret = room\room_client::instance()->create_chat($user);
- $room_id = $ret['room'];
- $retx = room\room_client::instance()->invite($room_id,36429);
- }
- }
|