Skip to content

Commit 0f1ac7c

Browse files
authored
Test PHP 7.4 on Travis (#15)
1 parent 36aaec5 commit 0f1ac7c

File tree

7 files changed

+12
-11
lines changed

7 files changed

+12
-11
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ php:
44
- '7.1'
55
- '7.2'
66
- '7.3'
7+
- '7.4'
78

89
env:
910
global:

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@
3030
},
3131
"require": {
3232
"php": ">=7.1",
33-
"yoanm/jsonrpc-server-doc-sdk": "^0.1",
34-
"yoanm/jsonrpc-http-server-openapi-doc-sdk": "^0.1",
35-
"yoanm/symfony-jsonrpc-http-server-doc": "^0.1",
33+
"yoanm/jsonrpc-server-doc-sdk": "^0.2",
34+
"yoanm/jsonrpc-http-server-openapi-doc-sdk": "^0.2",
35+
"yoanm/symfony-jsonrpc-http-server-doc": "^0.2",
3636
"symfony/http-kernel": "^3.0 || ^4.0",
3737
"symfony/dependency-injection": "^3.0 || ^4.0"
3838
},
3939
"require-dev": {
4040
"behat/behat": "~3.0",
4141
"squizlabs/php_codesniffer": "3.*",
4242
"phpunit/phpunit": "^7.0 || ^8.0",
43-
"matthiasnoback/symfony-dependency-injection-test": "^2.0 || ^3.0",
43+
"matthiasnoback/symfony-dependency-injection-test": "^3.0 || ^4.0",
4444
"matthiasnoback/symfony-config-test": "^3.0 || ^4.0",
4545
"symfony/framework-bundle": "^3.0 || ^4.0",
4646
"yoanm/php-unit-extended": "~1.0"

tests/Common/DependencyInjection/AbstractTestClass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ abstract class AbstractTestClass extends AbstractExtensionTestCase
1919
/**
2020
* {@inheritdoc}
2121
*/
22-
protected function getContainerExtensions()
22+
protected function getContainerExtensions(): array
2323
{
2424
return [
2525
new JsonRpcHttpServerDocExtension(),
2626
new JsonRpcHttpServerOpenAPIDocExtension()
2727
];
2828
}
2929

30-
protected function load(array $configurationValues = [])
30+
protected function loadContainer(array $configurationValues = [])
3131
{
3232
$eventDispatcherDefinition = new Definition(EventDispatcher::class);
3333
$this->setDefinition('event_dispatcher', $eventDispatcherDefinition);

tests/Functional/DependencyInjection/ConfigFilesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ConfigFilesTest extends AbstractTestClass
3232
*/
3333
public function testShouldHaveService($serviceId, $expectedClassName, $public)
3434
{
35-
$this->load();
35+
$this->loadContainer();
3636

3737
$this->assertContainerBuilderHasService($serviceId, $expectedClassName);
3838
if (true === $public) {
@@ -43,7 +43,7 @@ public function testShouldHaveService($serviceId, $expectedClassName, $public)
4343

4444
public function testDocProviderShouldHaveDocProviderTag()
4545
{
46-
$this->load();
46+
$this->loadContainer();
4747

4848
// From yoanm/symfony-jsonrpc-http-server
4949
$this->assertContainerBuilderHasServiceDefinitionWithTag(

tests/Functional/DependencyInjection/JsonRpcHttpServerOpenAPIDocExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class JsonRpcHttpServerOpenAPIDocExtensionTest extends AbstractTestClass
1111
{
1212
public function testShouldBeLoadable()
1313
{
14-
$this->load();
14+
$this->loadContainer();
1515

1616
$this->assertDocProviderIsLoadable();
1717
}

tests/Functional/Event/OpenAPIDocCreatedEventTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class OpenAPIDocCreatedEventTest extends TestCase
1919
/** @var HttpServerDoc|ObjectProphecy */
2020
private $serverDoc;
2121

22-
protected function setUp()
22+
protected function setUp(): void
2323
{
2424
$this->openAPIDoc = ['openApiDoc'];
2525
$this->serverDoc = $this->prophesize(HttpServerDoc::class);

tests/Functional/Provider/DocProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DocProviderTest extends TestCase
2626
/** @var DocNormalizer|ObjectProphecy */
2727
private $docNormalizer;
2828

29-
protected function setUp()
29+
protected function setUp(): void
3030
{
3131
$this->dispatcher = $this->prophesize(EventDispatcherInterface::class);
3232
$this->httpServerDocCreator = $this->prophesize(HttpServerDocCreator::class);

0 commit comments

Comments
 (0)