diff --git a/tests/framework/console/controllers/MigrateControllerTest.php b/tests/framework/console/controllers/MigrateControllerTest.php
index <HASH>..<HASH> 100644
--- a/tests/framework/console/controllers/MigrateControllerTest.php
+++ b/tests/framework/console/controllers/MigrateControllerTest.php
@@ -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');
diff --git a/tests/framework/widgets/FragmentCacheTest.php b/tests/framework/widgets/FragmentCacheTest.php
index <HASH>..<HASH> 100644
--- a/tests/framework/widgets/FragmentCacheTest.php
+++ b/tests/framework/widgets/FragmentCacheTest.php
@@ -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();
Fix test output (Prevent output among phpunit tests) (#<I>)

* Clear output in MigrateControllerTest::testCreateLongNamedMigration



* Clear output in FragmentCacheTest::testVariations