Update unit tests for latest codeception

This commit is contained in:
Kijin Sung 2021-01-28 21:53:44 +09:00
parent 0db02281c9
commit f46b41f437
12 changed files with 331 additions and 295 deletions

View file

@ -41,7 +41,7 @@ class DebugTest extends \Codeception\TestCase\Test
$errors = Rhymix\Framework\Debug::getErrors();
$this->assertGreaterThanOrEqual(1, count($errors));
$error = array_pop($errors);
$this->assertContains('Rhymix', $error->message);
$this->assertStringContainsString('Rhymix', $error->message);
$this->assertEquals($file, $error->file);
$this->assertEquals($line, $error->line);
Rhymix\Framework\Debug::clearErrors();