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 */
@@ -200,11 +203,9 @@ public function testLoad()
200203 $ this ->assertSame ('BAZ ' , $ bar );
201204 }
202205
203- /**
204- * @expectedException \Symfony\Component\Dotenv\Exception\PathException
205- */
206206 public function testLoadDirectory ()
207207 {
208+ $ this ->expectException ('Symfony\Component\Dotenv\Exception\PathException ' );
208209 $ dotenv = new Dotenv ();
209210 $ dotenv ->load (__DIR__ );
210211 }
You can’t perform that action at this time.
0 commit comments