File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
-
4
3
namespace TheCodingMachine \Graphqlite \Bundle \Tests \Command ;
5
4
6
-
7
5
use PHPUnit \Framework \TestCase ;
6
+ use Symfony \Bundle \FrameworkBundle \Console \Application ;
8
7
use Symfony \Component \Console \Tester \CommandTester ;
9
8
use TheCodingMachine \Graphqlite \Bundle \Tests \GraphqliteTestingKernel ;
10
- use Symfony \Bundle \FrameworkBundle \Console \Application ;
11
9
12
10
class DumpSchemaCommandTest extends TestCase
13
11
{
14
- public function testExecute ()
12
+ public function testExecute (): void
15
13
{
16
14
$ kernel = new GraphqliteTestingKernel ();
17
15
$ application = new Application ($ kernel );
@@ -20,7 +18,7 @@ public function testExecute()
20
18
$ commandTester = new CommandTester ($ command );
21
19
$ commandTester ->execute ([]);
22
20
23
- $ this -> assertRegExp (
21
+ self :: assertMatchesRegularExpression (
24
22
'/type Product {[\s"]*seller: Contact\s*name: String!\s*price: Float!\s*}/ ' ,
25
23
$ commandTester ->getDisplay ()
26
24
);
You can’t perform that action at this time.
0 commit comments