File tree Expand file tree Collapse file tree 6 files changed +17
-12
lines changed Expand file tree Collapse file tree 6 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 36
36
"php-http/mock-client" : " ^1.0" ,
37
37
"phpstan/phpstan-shim" : " ^0.11" ,
38
38
"phpstan/phpstan-phpunit" : " ^0.11" ,
39
- "phpunit/phpunit" : " ^7.5" ,
39
+ "phpunit/phpunit" : " ^7.5||^8.5 " ,
40
40
"symfony/browser-kit" : " ^3.4||^4.0||^5.0" ,
41
41
"symfony/expression-language" : " ^3.4||^4.0||^5.0" ,
42
42
"symfony/framework-bundle" : " ^3.4||^4.0||^5.0" ,
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<phpunit
3
3
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
- xsi : noNamespaceSchemaLocation =" http://schema.phpunit.de/7 .5/phpunit.xsd"
4
+ xsi : noNamespaceSchemaLocation =" http://schema.phpunit.de/8 .5/phpunit.xsd"
5
5
colors =" true"
6
6
backupGlobals =" false"
7
7
bootstrap =" vendor/autoload.php"
8
+ cacheResult =" false"
8
9
processIsolation =" true"
9
10
>
10
11
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ class ErrorTypesParserTest extends TestCase
9
9
{
10
10
/**
11
11
* @dataProvider parsableValueProvider
12
+ * @param int|string $value
12
13
*/
13
- public function testParse (string $ value , int $ expected ): void
14
+ public function testParse ($ value , int $ expected ): void
14
15
{
15
16
$ ex = new ErrorTypesParser ($ value );
16
17
$ this ->assertEquals ($ expected , $ ex ->parse ());
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 ;
11
12
use Symfony \Component \Console \Command \Command ;
12
13
use Symfony \Component \Console \Event \ConsoleCommandEvent ;
13
14
use Symfony \Component \Console \Input \InputInterface ;
14
15
use Symfony \Component \Console \Output \OutputInterface ;
15
16
16
17
class ConsoleListenerTest extends BaseTestCase
17
18
{
19
+ use SetUpTearDownTrait;
20
+
18
21
private $ currentHub ;
19
22
private $ currentScope ;
20
23
21
- protected function setUp ()
24
+ protected function doSetUp (): void
22
25
{
23
- parent ::setUp ();
24
-
25
26
$ this ->currentScope = $ scope = new Scope ();
26
27
$ this ->currentHub = $ this ->prophesize (HubInterface::class);
27
28
$ 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 ;
13
14
use Symfony \Component \HttpFoundation \Request ;
14
15
use Symfony \Component \HttpKernel \Event \ControllerEvent ;
15
16
use Symfony \Component \HttpKernel \Event \FilterControllerEvent ;
20
21
21
22
class RequestListenerTest extends BaseTestCase
22
23
{
24
+ use SetUpTearDownTrait;
25
+
23
26
private $ currentScope ;
24
27
private $ currentHub ;
25
28
private $ options ;
26
29
27
- protected function setUp ()
30
+ protected function doSetUp (): void
28
31
{
29
- parent ::setUp ();
30
-
31
32
$ this ->currentScope = $ scope = new Scope ();
32
33
$ this ->currentHub = $ this ->prophesize (HubInterface::class);
33
34
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 ;
9
10
use Symfony \Component \HttpFoundation \Request ;
10
11
use Symfony \Component \HttpKernel \Event \FinishRequestEvent ;
11
12
use Symfony \Component \HttpKernel \KernelInterface ;
12
13
13
14
class SubRequestListenerTest extends BaseTestCase
14
15
{
16
+ use SetUpTearDownTrait;
17
+
15
18
private $ currentHub ;
16
19
17
- protected function setUp ()
20
+ protected function doSetUp (): void
18
21
{
19
- parent ::setUp ();
20
-
21
22
$ this ->currentHub = $ this ->prophesize (HubInterface::class);
22
23
23
24
$ this ->setCurrentHub ($ this ->currentHub ->reveal ());
You can’t perform that action at this time.
0 commit comments