Skip to content

Commit d1a1ff1

Browse files
committed
fixed CS
1 parent bfe8872 commit d1a1ff1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Tests/ApplicationTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,9 @@ public function testRenderExceptionWithDoubleWidthCharacters()
476476
$application->expects($this->any())
477477
->method('getTerminalWidth')
478478
->will($this->returnValue(120));
479-
$application->register('foo')->setCode(function () {throw new \Exception('エラーメッセージ');});
479+
$application->register('foo')->setCode(function () {
480+
throw new \Exception('エラーメッセージ');
481+
});
480482
$tester = new ApplicationTester($application);
481483

482484
$tester->run(array('command' => 'foo'), array('decorated' => false));
@@ -490,7 +492,9 @@ public function testRenderExceptionWithDoubleWidthCharacters()
490492
$application->expects($this->any())
491493
->method('getTerminalWidth')
492494
->will($this->returnValue(32));
493-
$application->register('foo')->setCode(function () {throw new \Exception('コマンドの実行中にエラーが発生しました。');});
495+
$application->register('foo')->setCode(function () {
496+
throw new \Exception('コマンドの実行中にエラーが発生しました。');
497+
});
494498
$tester = new ApplicationTester($application);
495499
$tester->run(array('command' => 'foo'), array('decorated' => false));
496500
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception_doublewidth2.txt', $tester->getDisplay(true), '->renderException() wraps messages when they are bigger than the terminal');

0 commit comments

Comments
 (0)