File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1212namespace Symfony \Component \Dotenv \Tests ;
1313
1414use PHPUnit \Framework \TestCase ;
15+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
1516use Symfony \Component \Dotenv \Dotenv ;
1617use Symfony \Component \Dotenv \Exception \FormatException ;
1718
1819class 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 }
You can’t perform that action at this time.
0 commit comments