File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1010use CallbackFilterIterator ;
1111use DirectoryIterator ;
1212use ReflectionMethod ;
13+ use RuntimeException ;
1314
1415class PdfTest extends TestCase
1516{
@@ -79,8 +80,9 @@ public function testRemovesLocalFilesOnError(): void
7980 $ method ->setAccessible (true );
8081 $ method ->invoke ($ pdf , 'test ' , $ pdf ->getDefaultExtension ());
8182 $ this ->assertEquals (1 , \count ($ pdf ->temporaryFiles ));
82- $ this ->expectException (\RuntimeException::class);
83- throw new \RuntimeException ('test error ' );
83+ $ this ->expectException (RuntimeException::class);
84+
85+ throw new RuntimeException ('test error ' );
8486 // @phpstan-ignore-next-line See https://github.com/phpstan/phpstan/issues/7799
8587 $ this ->assertFileNotExists (\reset ($ pdf ->temporaryFiles ));
8688 }
You can’t perform that action at this time.
0 commit comments