File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed
tests/end-to-end/regression/3739 Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change 12
12
use function unlink ;
13
13
use PHPUnit \Framework \TestCase ;
14
14
15
- class Issue3739
15
+ final class Issue3739Test extends TestCase
16
16
{
17
- public function unlinkFileThatDoesNotExistWithErrorSuppression (): bool
17
+ public function testWithErrorSuppression (): void
18
18
{
19
- return @ unlink ( __DIR__ . ' /DOES_NOT_EXIST ' );
19
+ $ this -> assertFalse ( $ this -> unlinkFileThatDoesNotExistWithErrorSuppression () );
20
20
}
21
21
22
- public function unlinkFileThatDoesNotExistWithoutErrorSuppression (): bool
22
+ public function testWithoutErrorSuppression (): void
23
23
{
24
- return unlink ( __DIR__ . ' /DOES_NOT_EXIST ' );
24
+ $ this -> assertFalse ( $ this -> unlinkFileThatDoesNotExistWithoutErrorSuppression () );
25
25
}
26
- }
27
26
28
- final class Issue3739Test extends TestCase
29
- {
30
- public function testWithErrorSuppression (): void
27
+ private function unlinkFileThatDoesNotExistWithErrorSuppression (): bool
31
28
{
32
- $ this -> assertFalse (( new Issue3739 )-> unlinkFileThatDoesNotExistWithErrorSuppression () );
29
+ return @ unlink ( __DIR__ . ' /DOES_NOT_EXIST ' );
33
30
}
34
31
35
- public function testWithoutErrorSuppression (): void
32
+ private function unlinkFileThatDoesNotExistWithoutErrorSuppression (): bool
36
33
{
37
- $ this -> assertFalse (( new Issue3739 )-> unlinkFileThatDoesNotExistWithoutErrorSuppression () );
34
+ return unlink ( __DIR__ . ' /DOES_NOT_EXIST ' );
38
35
}
39
36
}
You can’t perform that action at this time.
0 commit comments