mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正 fixtures
This commit is contained in:
26
tests/fixtures/config.php
vendored
26
tests/fixtures/config.php
vendored
@@ -1,26 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
// $Id$
|
||||
|
||||
return [
|
||||
'url_route_on' => true,
|
||||
'slog' => [
|
||||
'host' => '111.202.76.133',
|
||||
//是否显示利于优化的参数,如果允许时间,消耗内存等
|
||||
'optimize' => true,
|
||||
'show_included_files' => true,
|
||||
'error_handler' => true,
|
||||
//日志强制记录到配置的client_id
|
||||
'force_client_id' => '',
|
||||
//限制允许读取日志的client_id
|
||||
'allow_client_ids' => [],
|
||||
],
|
||||
];
|
||||
2
tests/fixtures/runtime/.gitignore
vendored
2
tests/fixtures/runtime/.gitignore
vendored
@@ -1,2 +0,0 @@
|
||||
*
|
||||
!.gitignore
|
||||
@@ -19,7 +19,7 @@ $_SERVER['REQUEST_METHOD'] = 'GET';
|
||||
define('TEST_PATH', __DIR__ . '/');
|
||||
|
||||
// 定义项目路径
|
||||
define('APP_PATH', __DIR__ . '/fixtures/');
|
||||
define('APP_PATH', __DIR__ . '/../../application/');
|
||||
// 开启调试模式
|
||||
define('APP_DEBUG', true);
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ class iniTest extends \PHPUnit_Framework_TestCase
|
||||
Config::parse('inistring=1', 'ini');
|
||||
$this->assertEquals(1, Config::get('inistring'));
|
||||
Config::reset();
|
||||
Config::parse('thinkphp/tests/fixtures/config.ini');
|
||||
Config::parse(__DIR__ . '/fixtures/config.ini');
|
||||
$this->assertTrue(Config::has('inifile'));
|
||||
$this->assertEquals(1, Config::get('inifile'));
|
||||
Config::reset();
|
||||
|
||||
@@ -26,7 +26,7 @@ class xmlTest extends \PHPUnit_Framework_TestCase
|
||||
Config::parse('<?xml version="1.0"?><document><xmlstring>1</xmlstring></document>', 'xml');
|
||||
$this->assertEquals(1, Config::get('xmlstring'));
|
||||
Config::reset();
|
||||
Config::parse('thinkphp/tests/fixtures/config.xml');
|
||||
Config::parse(__DIR__ . '/fixtures/config.xml');
|
||||
$this->assertTrue(Config::has('xmlfile.istrue'));
|
||||
$this->assertEquals(1, Config::get('xmlfile.istrue'));
|
||||
Config::reset();
|
||||
|
||||
Reference in New Issue
Block a user