11<?php
22
3+ declare (strict_types=1 );
4+
35namespace Sentry \SentryBundle \Tests \End2End ;
46
57use Sentry \Logs \Log ;
1214
1315class LoggingCommandTest extends WebTestCase
1416{
15-
1617 /**
1718 * @var Application
1819 */
@@ -31,7 +32,7 @@ protected function setUp(): void
3132
3233 public function testLogsInCommand (): void
3334 {
34- $ this ->application ->doRun (new ArgvInput (['bin/console ' , " log:test " ]), new NullOutput ());
35+ $ this ->application ->doRun (new ArgvInput (['bin/console ' , ' log:test ' ]), new NullOutput ());
3536
3637 $ this ->assertCount (1 , StubTransport::$ events );
3738 $ event = StubTransport::$ events [0 ];
@@ -49,8 +50,8 @@ public function testLogsInCommand(): void
4950 public function testExceptionLogsInCommand (): void
5051 {
5152 try {
52- $ this ->application ->doRun (new ArgvInput (['bin/console ' , " log:nosub " ]), new NullOutput ());
53- $ this ->fail (" Expected exception never occurred " );
53+ $ this ->application ->doRun (new ArgvInput (['bin/console ' , ' log:nosub ' ]), new NullOutput ());
54+ $ this ->fail (' Expected exception never occurred ' );
5455 } catch (\Throwable $ t ) {
5556 }
5657
@@ -70,10 +71,9 @@ public function testExceptionLogsInCommand(): void
7071 public function testExceptionLogsWithSubcommand (): void
7172 {
7273 try {
73- $ this ->application ->doRun (new ArgvInput (['bin/console ' , " log:sub " ]), new NullOutput ());
74- $ this ->fail (" Expected exception never occurred " );
74+ $ this ->application ->doRun (new ArgvInput (['bin/console ' , ' log:sub ' ]), new NullOutput ());
75+ $ this ->fail (' Expected exception never occurred ' );
7576 } catch (\Throwable $ t ) {
76-
7777 }
7878
7979 // 1.) Logs from subcommand
@@ -105,7 +105,7 @@ private function findOneByLevel(array $logs, LogLevel $level): ?Log
105105 return $ log ;
106106 }
107107 }
108+
108109 return null ;
109110 }
110-
111111}
0 commit comments