修正 fixtures

This commit is contained in:
7IN0SAN9
2016-01-19 22:45:56 +08:00
parent 17df725760
commit 1c7fe476e8
7 changed files with 3 additions and 31 deletions

View File

@@ -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' => [],
],
];

View File

@@ -1,2 +0,0 @@
*
!.gitignore

View File

@@ -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);

View File

@@ -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();

View File

@@ -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();