123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /**
- * Created by PhpStorm.
- * User: stanley-king
- * Date: 2017/1/31
- * Time: 上午11:28
- */
- define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
- require_once(BASE_ROOT_PATH . '/fooder.php');
- class DBTest extends PHPUnit_Framework_TestCase
- {
- public static function setUpBeforeClass()
- {
- Base::run_util();
- }
- public function testQuery()
- {
- $items = Db::getAll('select * from lrlz_member');
- }
- public static function tearDownAfterClass()
- {
- }
- public function testConnection()
- {
- $mysql = @new mysqli('192.168.1.103', 'root', '55668899', 'pandashop', '3306');
- }
- }
|