Skip to content

Commit 166772e

Browse files
Make tests support phpunit 8
1 parent adb96e6 commit 166772e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tests/FormTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@
1212
namespace Symfony\Component\DomCrawler\Tests;
1313

1414
use PHPUnit\Framework\TestCase;
15+
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1516
use Symfony\Component\DomCrawler\Form;
1617
use Symfony\Component\DomCrawler\FormFieldRegistry;
1718

1819
class FormTest extends TestCase
1920
{
20-
public static function setUpBeforeClass()
21+
use ForwardCompatTestTrait;
22+
23+
private static function doSetUpBeforeClass()
2124
{
2225
// Ensure that the private helper class FormFieldRegistry is loaded
2326
class_exists('Symfony\\Component\\DomCrawler\\Form');

0 commit comments

Comments
 (0)