File tree Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 8
8
use Sentry \SentryBundle \Test \BaseTestCase ;
9
9
use Sentry \State \HubInterface ;
10
10
use Sentry \State \Scope ;
11
- use Symfony \Bridge \PhpUnit \SetUpTearDownTrait ;
12
11
use Symfony \Component \Console \Command \Command ;
13
12
use Symfony \Component \Console \Event \ConsoleCommandEvent ;
14
13
use Symfony \Component \Console \Input \InputInterface ;
15
14
use Symfony \Component \Console \Output \OutputInterface ;
16
15
17
16
class ConsoleListenerTest extends BaseTestCase
18
17
{
19
- use SetUpTearDownTrait;
20
-
21
18
private $ currentHub ;
22
19
private $ currentScope ;
23
20
24
- protected function doSetUp (): void
21
+ protected function setUp (): void
25
22
{
23
+ parent ::setUp ();
24
+
26
25
$ this ->currentScope = $ scope = new Scope ();
27
26
$ this ->currentHub = $ this ->prophesize (HubInterface::class);
28
27
$ this ->currentHub ->configureScope (Argument::type ('callable ' ))
Original file line number Diff line number Diff line change 10
10
use Sentry \SentryBundle \Test \BaseTestCase ;
11
11
use Sentry \State \HubInterface ;
12
12
use Sentry \State \Scope ;
13
- use Symfony \Bridge \PhpUnit \SetUpTearDownTrait ;
14
13
use Symfony \Component \HttpFoundation \Request ;
15
14
use Symfony \Component \HttpKernel \Event \ControllerEvent ;
16
15
use Symfony \Component \HttpKernel \Event \FilterControllerEvent ;
21
20
22
21
class RequestListenerTest extends BaseTestCase
23
22
{
24
- use SetUpTearDownTrait;
25
-
26
23
private $ currentScope ;
27
24
private $ currentHub ;
28
25
private $ options ;
29
26
30
- protected function doSetUp (): void
27
+ protected function setUp (): void
31
28
{
29
+ parent ::setUp ();
30
+
32
31
$ this ->currentScope = $ scope = new Scope ();
33
32
$ this ->currentHub = $ this ->prophesize (HubInterface::class);
34
33
Original file line number Diff line number Diff line change 6
6
use Sentry \SentryBundle \Test \BaseTestCase ;
7
7
use Sentry \State \HubInterface ;
8
8
use Sentry \State \Scope ;
9
- use Symfony \Bridge \PhpUnit \SetUpTearDownTrait ;
10
9
use Symfony \Component \HttpFoundation \Request ;
11
10
use Symfony \Component \HttpKernel \Event \FinishRequestEvent ;
12
11
use Symfony \Component \HttpKernel \KernelInterface ;
13
12
14
13
class SubRequestListenerTest extends BaseTestCase
15
14
{
16
- use SetUpTearDownTrait;
17
-
18
15
private $ currentHub ;
19
16
20
- protected function doSetUp (): void
17
+ protected function setUp (): void
21
18
{
22
19
$ this ->currentHub = $ this ->prophesize (HubInterface::class);
23
20
You can’t perform that action at this time.
0 commit comments