Skip to content

Commit 47c5b4c

Browse files
authored
Merge pull request #163 from stof/better_deprecation_reporting
Improve the reporting of deprecations in the testsuite
2 parents 0d3d9c3 + d3eb8e0 commit 47c5b4c

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

phpunit.http_client.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@
1818
<directory>./src</directory>
1919
</whitelist>
2020
</filter>
21+
22+
<listeners>
23+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
24+
</listeners>
2125
</phpunit>

phpunit.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@
1818
<directory>./src</directory>
1919
</whitelist>
2020
</filter>
21+
22+
<listeners>
23+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
24+
</listeners>
2125
</phpunit>

tests/Custom/ErrorHandlingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function setNextScript($script)
175175
$this->nextScript = $script;
176176
}
177177

178-
protected function doRequest($request)
178+
protected function doRequest($request): object
179179
{
180180
if (null === $this->nextResponse) {
181181
return new Response();

0 commit comments

Comments
 (0)