Skip to content

Commit

Permalink
Merge pull request #32 from ruudk/stable
Browse files Browse the repository at this point in the history
Make `main` stable
  • Loading branch information
mcg-web committed Dec 8, 2021
2 parents 75f89c8 + 24888d4 commit be0d4ce
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 14 deletions.
9 changes: 7 additions & 2 deletions composer.json
Expand Up @@ -55,15 +55,20 @@
}
},
"scripts": {
"test": "bin/phpunit --color=always -v --debug",
"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",
"test": "bin/phpunit --color=always",
"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",
"fix-cs": [
"@install-cs",
"@php php-cs-fixer.phar fix --diff -v --allow-risky=yes --ansi"
],
"check-cs": [
"@install-cs",
"@php php-cs-fixer.phar fix --dry-run --diff -v --allow-risky=yes --ansi"
],
"code-quality": [
"rm composer.lock",
"@composer install --ansi",
"@check-cs"
]
}
}
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Expand Up @@ -14,7 +14,7 @@

<testsuites>
<testsuite name="OverblogGraphiQLBundle Test Suite">
<directory>./tests/</directory>
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
1 change: 0 additions & 1 deletion src/DependencyInjection/Configuration.php
Expand Up @@ -39,7 +39,6 @@ public function getConfigTreeBuilder(): TreeBuilder
}

/**
* @param TreeBuilder $builder
* @param string|null $name
* @param string $type
*
Expand Down
4 changes: 2 additions & 2 deletions src/OverblogGraphiQLBundle.php
Expand Up @@ -11,7 +11,7 @@

final class OverblogGraphiQLBundle extends Bundle
{
public function build(ContainerBuilder $container) : void
public function build(ContainerBuilder $container): void
{
parent::build($container);

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

public function getContainerExtension() : ?ExtensionInterface
public function getContainerExtension(): ?ExtensionInterface
{
return new OverblogGraphiQLExtension();
}
Expand Down
4 changes: 0 additions & 4 deletions tests/Config/GraphQLEndpoint/RouteResolverTest.php
Expand Up @@ -6,8 +6,6 @@
use Overblog\GraphiQLBundle\Config\GraphQLEndpoint\RouteResolver;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Prophecy\Argument;
use Prophecy\Prophecy\ObjectProphecy;
use Symfony\Component\Routing\RouterInterface;

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

/**
* @param array $routeCollection
*
* @return RouteResolver
*/
private function subject(array $routeCollection)
Expand Down
6 changes: 3 additions & 3 deletions tests/Controller/GraphiQLControllerTest.php
Expand Up @@ -7,7 +7,7 @@

final class GraphiQLControllerTest extends TestCase
{
public function testInvalidSchema() : void
public function testInvalidSchema(): void
{
$client = static::createClient();

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

public function testDefaultSchema() : void
public function testDefaultSchema(): void
{
$client = static::createClient();

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

public function testDefaultSchemaViaMultipleRoute() : void
public function testDefaultSchemaViaMultipleRoute(): void
{
$client = static::createClient();

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Expand Up @@ -14,7 +14,7 @@ abstract class TestCase extends WebTestCase
/**
* {@inheritdoc}
*/
protected static function getKernelClass() : string
protected static function getKernelClass(): string
{
return TestKernel::class;
}
Expand Down
1 change: 1 addition & 0 deletions tests/TestKernel.php
Expand Up @@ -23,6 +23,7 @@ public function getLogDir(): string
{
return sys_get_temp_dir().'/OverblogGraphQLBundle/'.Kernel::VERSION.'/'.$this->testCase.'/logs';
}

public function isBooted()
{
return $this->booted;
Expand Down

0 comments on commit be0d4ce

Please sign in to comment.