Skip to content

Commit be0d4ce

Browse files
authored
Merge pull request #32 from ruudk/stable
Make `main` stable
2 parents 75f89c8 + 24888d4 commit be0d4ce

File tree

8 files changed

+15
-14
lines changed

8 files changed

+15
-14
lines changed

composer.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,20 @@
5555
}
5656
},
5757
"scripts": {
58-
"test": "bin/phpunit --color=always -v --debug",
59-
"install-cs": "test -f php-cs-fixer.phar || wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.15.3/php-cs-fixer.phar -O php-cs-fixer.phar",
58+
"test": "bin/phpunit --color=always",
59+
"install-cs": "test -f php-cs-fixer.phar || wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.18.7/php-cs-fixer.phar -O php-cs-fixer.phar",
6060
"fix-cs": [
6161
"@install-cs",
6262
"@php php-cs-fixer.phar fix --diff -v --allow-risky=yes --ansi"
6363
],
6464
"check-cs": [
6565
"@install-cs",
6666
"@php php-cs-fixer.phar fix --dry-run --diff -v --allow-risky=yes --ansi"
67+
],
68+
"code-quality": [
69+
"rm composer.lock",
70+
"@composer install --ansi",
71+
"@check-cs"
6772
]
6873
}
6974
}

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<testsuites>
1616
<testsuite name="OverblogGraphiQLBundle Test Suite">
17-
<directory>./tests/</directory>
17+
<directory>tests</directory>
1818
</testsuite>
1919
</testsuites>
2020
</phpunit>

src/DependencyInjection/Configuration.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public function getConfigTreeBuilder(): TreeBuilder
3939
}
4040

4141
/**
42-
* @param TreeBuilder $builder
4342
* @param string|null $name
4443
* @param string $type
4544
*

src/OverblogGraphiQLBundle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
final class OverblogGraphiQLBundle extends Bundle
1313
{
14-
public function build(ContainerBuilder $container) : void
14+
public function build(ContainerBuilder $container): void
1515
{
1616
parent::build($container);
1717

@@ -22,7 +22,7 @@ public function build(ContainerBuilder $container) : void
2222
$container->addCompilerPass(new DefaultEndpointWiringPass());
2323
}
2424

25-
public function getContainerExtension() : ?ExtensionInterface
25+
public function getContainerExtension(): ?ExtensionInterface
2626
{
2727
return new OverblogGraphiQLExtension();
2828
}

tests/Config/GraphQLEndpoint/RouteResolverTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
use Overblog\GraphiQLBundle\Config\GraphQLEndpoint\RouteResolver;
77
use PHPUnit\Framework\MockObject\MockObject;
88
use PHPUnit\Framework\TestCase;
9-
use Prophecy\Argument;
10-
use Prophecy\Prophecy\ObjectProphecy;
119
use Symfony\Component\Routing\RouterInterface;
1210

1311
final class RouteResolverTest extends TestCase
@@ -21,8 +19,6 @@ public function setUp(): void
2119
}
2220

2321
/**
24-
* @param array $routeCollection
25-
*
2622
* @return RouteResolver
2723
*/
2824
private function subject(array $routeCollection)

tests/Controller/GraphiQLControllerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
final class GraphiQLControllerTest extends TestCase
99
{
10-
public function testInvalidSchema() : void
10+
public function testInvalidSchema(): void
1111
{
1212
$client = static::createClient();
1313

@@ -18,7 +18,7 @@ public function testInvalidSchema() : void
1818
$this->assertSame(500, $response->getStatusCode());
1919
}
2020

21-
public function testDefaultSchema() : void
21+
public function testDefaultSchema(): void
2222
{
2323
$client = static::createClient();
2424

@@ -30,7 +30,7 @@ public function testDefaultSchema() : void
3030
$this->stringContains('Loading...', $response->getContent());
3131
}
3232

33-
public function testDefaultSchemaViaMultipleRoute() : void
33+
public function testDefaultSchemaViaMultipleRoute(): void
3434
{
3535
$client = static::createClient();
3636

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ abstract class TestCase extends WebTestCase
1414
/**
1515
* {@inheritdoc}
1616
*/
17-
protected static function getKernelClass() : string
17+
protected static function getKernelClass(): string
1818
{
1919
return TestKernel::class;
2020
}

tests/TestKernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public function getLogDir(): string
2323
{
2424
return sys_get_temp_dir().'/OverblogGraphQLBundle/'.Kernel::VERSION.'/'.$this->testCase.'/logs';
2525
}
26+
2627
public function isBooted()
2728
{
2829
return $this->booted;

0 commit comments

Comments
 (0)