Skip to content

Commit 5cdcb02

Browse files
committed
refactor: use function of assert PHPUnit
1 parent 0656575 commit 5cdcb02

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
"codeigniter/coding-standard": "^1.9.1",
3333
"nexusphp/tachycardia": "^2.4",
3434
"phpstan/extension-installer": "^1.4",
35-
"phpstan/phpstan": "^2.1.40",
35+
"phpstan/phpstan": "^2.1.43",
3636
"phpstan/phpstan-strict-rules": "^2.0.10",
3737
"phpunit/phpcov": "^10.0 || ^11.0",
3838
"phpunit/phpunit": "^11.5",
39-
"rector/rector": "2.3.8"
39+
"rector/rector": "2.3.9"
4040
},
4141
"minimum-stability": "dev",
4242
"prefer-stable": true,

tests/SecureTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
use PHPUnit\Framework\Attributes\DataProvider;
1818
use PHPUnit\Framework\TestCase;
1919

20+
use function PHPUnit\Framework\assertNotFalse;
21+
2022
/**
2123
* @internal
2224
*/
@@ -123,13 +125,13 @@ public function testExceptionNOFILE(): void
123125

124126
$data = self::$folderSupport . 'Book1.xlsx';
125127
$fp = fopen($data, 'rb');
126-
$this->assertNotFalse($fp);
128+
assertNotFalse($fp);
127129

128130
$fileSize = filesize($data);
129-
$this->assertNotFalse($fileSize);
131+
assertNotFalse($fileSize);
130132

131133
$binaryData = fread($fp, $fileSize);
132-
$this->assertNotFalse($binaryData);
134+
assertNotFalse($binaryData);
133135

134136
fclose($fp);
135137

0 commit comments

Comments
 (0)