mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Merge branch 'develop' into pr/reorganize-unit-tests
This commit is contained in:
commit
3237f188e3
5 changed files with 14 additions and 10 deletions
|
|
@ -39,6 +39,8 @@ module.exports = function(grunt) {
|
|||
import : 2,
|
||||
'adjoining-classes' : false,
|
||||
'box-model' : false,
|
||||
'box-sizing' : false,
|
||||
'font-sizes' : false,
|
||||
'duplicate-background-images' : false,
|
||||
'ids' : false,
|
||||
'important' : false,
|
||||
|
|
|
|||
|
|
@ -329,10 +329,11 @@ class Context
|
|||
}
|
||||
else
|
||||
{
|
||||
ob_start();
|
||||
$this->setCacheControl(-1, true);
|
||||
$_SESSION = array();
|
||||
}
|
||||
|
||||
ob_start();
|
||||
register_shutdown_function('Context::close');
|
||||
|
||||
// set authentication information in Context and session
|
||||
|
|
|
|||
|
|
@ -106,7 +106,10 @@ class DisplayHandler extends Handler
|
|||
}
|
||||
|
||||
// disable gzip if output already exists
|
||||
ob_flush();
|
||||
while (ob_get_level())
|
||||
{
|
||||
ob_end_flush();
|
||||
}
|
||||
if(headers_sent())
|
||||
{
|
||||
$this->gz_enabled = FALSE;
|
||||
|
|
|
|||
|
|
@ -384,10 +384,7 @@ class Debug
|
|||
*/
|
||||
public static function registerErrorHandlers($error_types)
|
||||
{
|
||||
if (Config::get('debug.enabled'))
|
||||
{
|
||||
set_error_handler('\\Rhymix\\Framework\\Debug::addError', $error_types);
|
||||
}
|
||||
set_error_handler('\\Rhymix\\Framework\\Debug::addError', $error_types);
|
||||
set_exception_handler('\\Rhymix\\Framework\\Debug::exceptionHandler');
|
||||
register_shutdown_function('\\Rhymix\\Framework\\Debug::shutdownHandler');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,10 +22,11 @@ class DebugTest extends \Codeception\TestCase\Test
|
|||
Rhymix\Framework\Debug::$write_to_error_log = false;
|
||||
Rhymix\Framework\Debug::addError(~0, 'Rhymix', $file, $line, null);
|
||||
$errors = Rhymix\Framework\Debug::getErrors();
|
||||
$this->assertEquals(1, count($errors));
|
||||
$this->assertContains('Rhymix', $errors[0]->message);
|
||||
$this->assertEquals($file, $errors[0]->file);
|
||||
$this->assertEquals($line, $errors[0]->line);
|
||||
$this->assertGreaterThanOrEqual(1, count($errors));
|
||||
$error = array_pop($errors);
|
||||
$this->assertContains('Rhymix', $error->message);
|
||||
$this->assertEquals($file, $error->file);
|
||||
$this->assertEquals($line, $error->line);
|
||||
}
|
||||
|
||||
public function testDebugQuery()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue