Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
deps:
- "normal"
symfony-require:
Expand Down Expand Up @@ -56,6 +57,16 @@ jobs:
php-version: "8.1"
deps: "normal"

# Test against latest Symfony 5.4 stable on 8.2
- symfony-require: "5.4.*"
php-version: "8.2"
deps: "dev"

# Test against latest Symfony 5.4 stable on 8.2 deps normal
- symfony-require: "5.4.*"
php-version: "8.2"
deps: "normal"

# Test against latest Symfony 6.0 stable on 8.0
- symfony-require: "6.0.*"
php-version: "8.0"
Expand All @@ -76,6 +87,16 @@ jobs:
php-version: "8.1"
deps: "normal"

# Test against latest Symfony 6.0 stable on 8.2
- symfony-require: "6.0.*"
php-version: "8.2"
deps: "dev"

# Test against latest Symfony 6.0 stable on 8.2 deps normal
- symfony-require: "6.0.*"
php-version: "8.2"
deps: "normal"

# Test against latest Symfony 6.1 stable on 8.1
- symfony-require: "6.1.*"
php-version: "8.1"
Expand All @@ -86,6 +107,35 @@ jobs:
php-version: "8.1"
deps: "normal"

# Test against latest Symfony 6.1 stable on 8.2
- symfony-require: "6.1.*"
php-version: "8.2"
deps: "dev"

# Test against latest Symfony 6.1 stable on 8.2 deps normal
- symfony-require: "6.1.*"
php-version: "8.2"
deps: "normal"

# Test against latest Symfony 6.2 stable on 8.1
- symfony-require: "6.2.*"
php-version: "8.1"
deps: "dev"

# Test against latest Symfony 6.2 stable on 8.1 deps normal
- symfony-require: "6.2.*"
php-version: "8.1"
deps: "normal"

# Test against latest Symfony 6.2 stable on 8.2
- symfony-require: "6.2.*"
php-version: "8.2"
deps: "dev"

# Test against latest Symfony 6.2 stable on 8.2 deps normal
- symfony-require: "6.2.*"
php-version: "8.2"
deps: "normal"
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[![PHP](https://img.shields.io/badge/php->=7.3,%20>=7.4,%20>=8.0-8892BF.svg)](https://packagist.org/packages/php-tmdb/api)
[![Total Downloads](https://poser.pugx.org/php-tmdb/symfony/downloads.svg)](https://packagist.org/packages/php-tmdb/symfony)

Compatible with Symfony 4 and 5, PHP 7.3 and up.
Compatible with Symfony 5 and 6, PHP 7.4 and up.

## Buy me a coffee, or a beer :-)

Expand Down
12 changes: 6 additions & 6 deletions Tests/DependencyInjection/CompilerPass/ConfigurationPassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ public function testAutowiring()
$pass = new ConfigurationPass();
$pass->process($container);

$this->assertAlias($container, get_class($eventDispatcherMock), EventDispatcherInterface::class);
$this->assertAlias($container, get_class($httpClientMock), ClientInterface::class);
$this->assertAlias($container, get_class($requestFactoryMock), RequestFactoryInterface::class);
$this->assertAlias($container, get_class($responseFactoryMock), ResponseFactoryInterface::class);
$this->assertAlias($container, get_class($streamFactoryMock), StreamFactoryInterface::class);
$this->assertAlias($container, get_class($uriFactoryMock), UriFactoryInterface::class);
$this->assertTag($container, get_class($eventDispatcherMock), TmdbSymfonyBundle::PSR14_EVENT_DISPATCHERS);
$this->assertTag($container, get_class($httpClientMock), TmdbSymfonyBundle::PSR18_CLIENTS);
$this->assertTag($container, get_class($requestFactoryMock), TmdbSymfonyBundle::PSR17_REQUEST_FACTORIES);
$this->assertTag($container, get_class($responseFactoryMock), TmdbSymfonyBundle::PSR17_RESPONSE_FACTORIES);
$this->assertTag($container, get_class($streamFactoryMock), TmdbSymfonyBundle::PSR17_STREAM_FACTORIES);
$this->assertTag($container, get_class($uriFactoryMock), TmdbSymfonyBundle::PSR17_URI_FACTORIES);
}

/**
Expand Down
10 changes: 10 additions & 0 deletions Tests/DependencyInjection/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ protected function assertAlias(ContainerBuilder $container, $value, $key): void
$this->assertSame($value, (string)$container->getAlias($key), sprintf('%s alias is correct', $key));
}

/**
* @param ContainerBuilder $container
* @param string $class
* @param string $tag
*/
protected function assertTag(ContainerBuilder $container, string $class, string $tag): void
{
$this->assertArrayHasKey($class, $container->findTaggedServiceIds($tag));
}

/**
* @param string $key
*/
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
"dealerdirect/phpcodesniffer-composer-installer": true,
"php-http/discovery": true
}
}
}