Fix test output (Prevent output among phpunit tests) (#15717)

* Clear output in MigrateControllerTest::testCreateLongNamedMigration

* Clear output in FragmentCacheTest::testVariations
This commit is contained in:
André Sousa
2018-02-21 04:55:17 -03:00
committed by Dmitry Naumenko
parent 427356bfba
commit 3616dc5e74
2 changed files with 8 additions and 0 deletions

View File

@ -171,6 +171,10 @@ class MigrateControllerTest extends TestCase
public function testCreateLongNamedMigration()
{
$this->setOutputCallback(function($output) {
return null;
});
$migrationName = str_repeat('a', 180);
$this->expectException('yii\console\Exception');

View File

@ -196,6 +196,10 @@ class FragmentCacheTest extends \yiiunit\TestCase
public function testVariations()
{
$this->setOutputCallback(function($output) {
return null;
});
ob_start();
ob_implicit_flush(false);
$view = new View();