1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- /**
- * Created by PhpStorm.
- * User: stanley-king
- * Date: 16/8/8
- * Time: 下午11:16
- */
- define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
- require_once(BASE_ROOT_PATH . '/fooder.php');
- class systemTest extends PHPUnit_Framework_TestCase
- {
- public static function setUpBeforeClass()
- {
- Base::run_util();
- }
- public function testAreas()
- {
- $items = Model('area')->field('*')->order('area_id')->limit(false)->select();
- foreach($items as $item) {
- $val['aid'] = intval($item['area_id']);
- $val['n'] = $item['area_name'];
- $val['pid'] = intval($item['area_parent_id']);
- $val['d'] = intval($item['area_deep']);
- $areas[] = $val;
- }
- $txt = json_encode($areas,JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
- }
- public function testMobile()
- {
- $x = intval('13911129867');
- if($x == '13911129867') {
- echo "==";
- }
- }
- }
|