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 11<?php
22
3-
43namespace TheCodingMachine \Graphqlite \Bundle \Tests \Command ;
54
6-
75use PHPUnit \Framework \TestCase ;
6+ use Symfony \Bundle \FrameworkBundle \Console \Application ;
87use Symfony \Component \Console \Tester \CommandTester ;
98use TheCodingMachine \Graphqlite \Bundle \Tests \GraphqliteTestingKernel ;
10- use Symfony \Bundle \FrameworkBundle \Console \Application ;
119
1210class DumpSchemaCommandTest extends TestCase
1311{
14- public function testExecute ()
12+ public function testExecute (): void
1513 {
1614 $ kernel = new GraphqliteTestingKernel ();
1715 $ application = new Application ($ kernel );
@@ -20,7 +18,7 @@ public function testExecute()
2018 $ commandTester = new CommandTester ($ command );
2119 $ commandTester ->execute ([]);
2220
23- $ this -> assertRegExp (
21+ self :: assertMatchesRegularExpression (
2422 '/type Product {[\s"]*seller: Contact\s*name: String!\s*price: Float!\s*}/ ' ,
2523 $ commandTester ->getDisplay ()
2624 );
You can’t perform that action at this time.
0 commit comments