Skip to content

Commit f49589a

Browse files
Merge branch '4.3' into 4.4
* 4.3: Fix tests Fix deprecated phpunit annotation
2 parents 804e9e1 + b885a4f commit f49589a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Tests/DotenvTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@
1212
namespace Symfony\Component\Dotenv\Tests;
1313

1414
use PHPUnit\Framework\TestCase;
15+
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1516
use Symfony\Component\Dotenv\Dotenv;
1617
use Symfony\Component\Dotenv\Exception\FormatException;
1718

1819
class DotenvTest extends TestCase
1920
{
21+
use ForwardCompatTestTrait;
22+
2023
/**
2124
* @dataProvider getEnvDataWithFormatErrors
2225
*/
@@ -305,11 +308,9 @@ public function testOverload()
305308
$this->assertSame('BAZ', $bar);
306309
}
307310

308-
/**
309-
* @expectedException \Symfony\Component\Dotenv\Exception\PathException
310-
*/
311311
public function testLoadDirectory()
312312
{
313+
$this->expectException('Symfony\Component\Dotenv\Exception\PathException');
313314
$dotenv = new Dotenv(true);
314315
$dotenv->load(__DIR__);
315316
}

0 commit comments

Comments
 (0)