Skip to content

Commit f0b6219

Browse files
authored
Merge pull request #98 from junaidbinfarooq/bugfix/fix-psr-4-autoloading-and-code-style
Fixes PSR4 auto-loading and code style issues
2 parents 3afc2ee + bac2eb4 commit f0b6219

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
<?php
22

3-
43
namespace TheCodingMachine\Graphqlite\Bundle\Tests\Command;
54

6-
75
use PHPUnit\Framework\TestCase;
6+
use Symfony\Bundle\FrameworkBundle\Console\Application;
87
use Symfony\Component\Console\Tester\CommandTester;
98
use TheCodingMachine\Graphqlite\Bundle\Tests\GraphqliteTestingKernel;
10-
use Symfony\Bundle\FrameworkBundle\Console\Application;
119

1210
class 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
);

0 commit comments

Comments
 (0)