Merge pull request #38 from kijin/fix/dont-hide-warnings

E_WARNING을 숨기지 않도록 변경
This commit is contained in:
Kijin Sung 2016-01-08 13:57:47 +09:00
commit bff3baaa3b
4 changed files with 6 additions and 5 deletions

View file

@ -8,4 +8,4 @@ settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 1024M
error_level: "E_ALL & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED & ~E_NOTICE"
error_level: "E_ALL & ~E_STRICT & ~E_DEPRECATED & ~E_NOTICE"

View file

@ -9,11 +9,11 @@
*/
if(version_compare(PHP_VERSION, '5.4.0', '<'))
{
@error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_WARNING);
@error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
}
else
{
@error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_WARNING ^ E_STRICT);
@error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_STRICT);
}
if(!defined('__XE__'))

View file

@ -27,7 +27,8 @@ class ContextTest extends \Codeception\TestCase\Test
public function testSetGetVars()
{
$this->assertEquals(Context::get('var1'), null);
context::set('var1', 'val1');
Context::getInstance()->context = new stdClass;
Context::set('var1', 'val1');
$this->assertEquals(Context::get('var1'), 'val1');
Context::set('var2', 'val2');

View file

@ -10,7 +10,7 @@ class ValidatorTest extends \Codeception\TestCase\Test
public function _before()
{
global $lang;
if(!$lang) $lang = new stdClass();
$lang->filter = new stdClass();
$lang->filter->isnull = 'isnull';
$lang->filter->outofrange = 'outofrange';