diff --git a/Gruntfile.js b/Gruntfile.js index 66be1ac71..243a6a552 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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, diff --git a/tests/Unit/framework/DebugTest.php b/tests/Unit/framework/DebugTest.php index 7325b34da..b6e4328d5 100644 --- a/tests/Unit/framework/DebugTest.php +++ b/tests/Unit/framework/DebugTest.php @@ -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()