Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Commit bfe1178

Browse files
committed
Fix deprecated phpunit annotation
1 parent 4860dcd commit bfe1178

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎Tests/ClassCollectionLoaderTest.php‎

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

1414
use PHPUnit\Framework\TestCase;
15+
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1516
use Symfony\Component\ClassLoader\ClassCollectionLoader;
1617
use Symfony\Component\ClassLoader\Tests\Fixtures\DeclaredClass;
1718
use Symfony\Component\ClassLoader\Tests\Fixtures\WarmedClass;
@@ -26,6 +27,8 @@
2627
*/
2728
class ClassCollectionLoaderTest extends TestCase
2829
{
30+
use ForwardCompatTestTrait;
31+
2932
public function testTraitDependencies()
3033
{
3134
require_once __DIR__.'/Fixtures/deps/traits.php';
@@ -208,11 +211,9 @@ public function getFixNamespaceDeclarationsDataWithoutTokenizer()
208211
];
209212
}
210213

211-
/**
212-
* @expectedException \InvalidArgumentException
213-
*/
214214
public function testUnableToLoadClassException()
215215
{
216+
$this->expectException('InvalidArgumentException');
216217
if (is_file($file = sys_get_temp_dir().'/foo.php')) {
217218
unlink($file);
218219
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /