|
12 | 12 | namespace Symfony\Component\ClassLoader\Tests;
|
13 | 13 |
|
14 | 14 | use PHPUnit\Framework\TestCase;
|
| 15 | +use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait; |
15 | 16 | use Symfony\Component\ClassLoader\ClassCollectionLoader;
|
16 | 17 | use Symfony\Component\ClassLoader\Tests\Fixtures\DeclaredClass;
|
17 | 18 | use Symfony\Component\ClassLoader\Tests\Fixtures\WarmedClass;
|
|
26 | 27 | */
|
27 | 28 | class ClassCollectionLoaderTest extends TestCase
|
28 | 29 | {
|
| 30 | + use ForwardCompatTestTrait; |
| 31 | + |
29 | 32 | public function testTraitDependencies()
|
30 | 33 | {
|
31 | 34 | require_once __DIR__.'/Fixtures/deps/traits.php';
|
@@ -208,11 +211,9 @@ public function getFixNamespaceDeclarationsDataWithoutTokenizer()
|
208 | 211 | ];
|
209 | 212 | }
|
210 | 213 |
|
211 | | - /** |
212 | | - * @expectedException \InvalidArgumentException |
213 | | - */ |
214 | 214 | public function testUnableToLoadClassException()
|
215 | 215 | {
|
| 216 | + $this->expectException('InvalidArgumentException'); |
216 | 217 | if (is_file($file = sys_get_temp_dir().'/foo.php')) {
|
217 | 218 | unlink($file);
|
218 | 219 | }
|
|
0 commit comments