8000 [PhpUnitBridge] Don't use Deprecation class from vendor directory · symfony/symfony@fc86d10 · GitHub
[go: up one dir, main page]

Skip to content

Commit fc86d10

Browse files
committed
[PhpUnitBridge] Don't use Deprecation class from vendor directory
1 parent f0a14b1 commit fc86d10

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616

1717
class DeprecationTest extends TestCase
1818
{
19+
public static function setUpBeforeClass(): void
20+
{
21+
// Use Deprecation class of the repository. Without that, Deprecation
22+
// class from vendors that is not up to date during PR is used
23+
require_once __DIR__.'/../../DeprecationErrorHandler/Deprecation.php';
24+
}
25+
1926
public function testItCanDetermineTheClassWhereTheDeprecationHappened()
2027
{
2128
$deprecation = new Deprecation('💩', $this->debugBacktrace(), __FILE__);

0 commit comments

Comments
 (0)
0