Skip to content

Commit 08ac861

Browse files
committed
symfony && phpunit
1 parent f8b66cd commit 08ac861

File tree

3 files changed

+25
-24
lines changed

3 files changed

+25
-24
lines changed

Tests/DependencyInjection/CompilerPass/EventDispatchingPassTest.php

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ final class EventDispatchingPassTest extends TestCase
3939
* @test
4040
* @group DependencyInjection
4141
*/
42-
public function testProcessFullConfiguration()
42+
public function testProcessFullConfiguration(): void
4343
{
4444
$container = new ContainerBuilder();
4545
$container->setParameter('kernel.debug', true);
@@ -74,7 +74,7 @@ public function testProcessFullConfiguration()
7474
* @test
7575
* @group DependencyInjection
7676
*/
77-
public function testProcessFullConfigurationWithSingleLogItemDisabled()
77+
public function testProcessFullConfigurationWithSingleLogItemDisabled(): void
7878
{
7979
$container = $this->containerWithConfig([
8080
'log' => [
@@ -129,7 +129,7 @@ public function testProcessMinimalConfiguration()
129129
* @test
130130
* @group DependencyInjection
131131
*/
132-
public function testBearerToken()
132+
public function testBearerToken(): void
133133
{
134134
$container = $this->containerWithConfig(['options' => ['bearer_token' => 'foobar']]);
135135

@@ -141,7 +141,7 @@ public function testBearerToken()
141141
* @test
142142
* @group DependencyInjection
143143
*/
144-
public function testWithFaultyAdapter()
144+
public function testWithFaultyAdapter(): void
145145
{
146146
$this->expectException(\RuntimeException::class);
147147

@@ -152,7 +152,7 @@ public function testWithFaultyAdapter()
152152
* @test
153153
* @group DependencyInjection
154154
*/
155-
public function testWithFaultyFormatter()
155+
public function testWithFaultyFormatter(): void
156156
{
157157
$this->expectException(\RuntimeException::class);
158158

@@ -163,7 +163,7 @@ public function testWithFaultyFormatter()
163163
* @test
164164
* @group DependencyInjection
165165
*/
166-
public function testWithFaultyListener()
166+
public function testWithFaultyListener(): void
167167
{
168168
$this->expectException(\RuntimeException::class);
169169

@@ -174,7 +174,7 @@ public function testWithFaultyListener()
174174
* @test
175175
* @group DependencyInjection
176176
*/
177-
public function testWithLogItemAliases()
177+
public function testWithLogItemAliases(): void
178178
{
179179
$container = new ContainerBuilder();
180180
$container->setParameter('kernel.debug', true);
@@ -209,7 +209,7 @@ public function testWithLogItemAliases()
209209
* @param array $faulty
210210
* @return ContainerBuilder
211211
*/
212-
private function containerWithConfig(array $faulty = [])
212+
private function containerWithConfig(array $faulty = []): ContainerBuilder
213213
{
214214
$container = new ContainerBuilder();
215215
$container->setParameter('kernel.debug', true);
@@ -235,7 +235,7 @@ private function containerWithConfig(array $faulty = [])
235235
/**
236236
* @param ContainerBuilder $container
237237
*/
238-
protected function registerBasicServices(ContainerBuilder $container)
238+
protected function registerBasicServices(ContainerBuilder $container): void
239239
{
240240
$container->register(EventDispatcher::class, EventDispatcher::class)->addTag(
241241
TmdbSymfonyBundle::PSR14_EVENT_DISPATCHERS
@@ -279,7 +279,7 @@ protected function registerBasicServices(ContainerBuilder $container)
279279
/**
280280
* @param ContainerBuilder $container
281281
*/
282-
protected function registerListenerServices(ContainerBuilder $container)
282+
protected function registerListenerServices(ContainerBuilder $container): void
283283
{
284284
$container->register(RequestListener::class, RequestListener::class);
285285
$container->register(Psr6CachedRequestListener::class, Psr6CachedRequestListener::class);
@@ -306,7 +306,8 @@ protected function doAssertCountListenersRegistered(
306306
int $httpClientExceptionEventCount = 0,
307307
int $tmdbExceptionEventCount = 0,
308308
int $beforeHydrationEventCount = 0
309-
) {
309+
): void
310+
{
310311
/** @var Client $client */
311312
$client = $container->get(Client::class);
312313

composer.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
}
1414
],
1515
"require": {
16-
"php": "^7.4 || ^8.0",
17-
"php-tmdb/api": "^4.0",
18-
"symfony/config": "^5.4 || ^6.0",
19-
"symfony/dependency-injection": "^5.4 || ^6.0",
20-
"symfony/event-dispatcher": "^5.4 || ^6.0",
21-
"symfony/http-kernel": "^5.4 || ^6.0",
22-
"symfony/yaml": "^5.4 || ^6.0",
16+
"php": "^8.2",
17+
"php-tmdb/api": "^4.1",
18+
"symfony/config": "^7.0",
19+
"symfony/dependency-injection": "^7.0",
20+
"symfony/event-dispatcher": "^7.0",
21+
"symfony/http-kernel": "^7.0",
22+
"symfony/yaml": "^7.0",
2323
"twig/twig": "^3.0"
2424
},
2525
"scripts": {
@@ -36,11 +36,11 @@
3636
"squizlabs/php_codesniffer": "^3.5.8",
3737
"php-http/guzzle7-adapter": "^0.1",
3838
"phpstan/phpstan": "^1.0",
39-
"phpunit/phpunit": "^7.5 || ^8.0 || ^9.3",
40-
"symfony/framework-bundle": "^5.4 || ^6.0",
41-
"symfony/phpunit-bridge": "^5.4 || ^6.0",
42-
"vimeo/psalm": "^4.0",
43-
"php-http/cache-plugin": "^1.7"
39+
"phpunit/phpunit": "^11.0",
40+
"symfony/framework-bundle": "^7.0",
41+
"symfony/phpunit-bridge": "^7.0",
42+
"php-http/cache-plugin": "^1.7",
43+
"vimeo/psalm": "^6.0"
4444
},
4545
"autoload": {
4646
"psr-4": { "Tmdb\\SymfonyBundle\\": "" }

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" bootstrap="vendor/autoload.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" bootstrap="vendor/autoload.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd">
33
<coverage processUncoveredFiles="true">
44
<include>
55
<directory>./</directory>

0 commit comments

Comments
 (0)