mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fix test output (Prevent output among phpunit tests) (#15717)
* Clear output in MigrateControllerTest::testCreateLongNamedMigration * Clear output in FragmentCacheTest::testVariations
This commit is contained in:

committed by
Dmitry Naumenko

parent
427356bfba
commit
3616dc5e74
@ -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');
|
||||
|
Reference in New Issue
Block a user