File: 0009-Use-assertFileDoesNotExist.patch

package info (click to toggle)
php-slim 3.12.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,396 kB
  • sloc: php: 11,581; makefile: 18; xml: 10; sh: 3
file content (21 lines) | stat: -rw-r--r-- 778 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: James Valleroy <jvalleroy@mailbox.org>
Date: Mon, 18 Nov 2024 18:56:01 -0500
Subject: Use assertFileDoesNotExist

---
 tests/Http/UploadedFilesTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Http/UploadedFilesTest.php b/tests/Http/UploadedFilesTest.php
index 03fcf76..8f9a043 100644
--- a/tests/Http/UploadedFilesTest.php
+++ b/tests/Http/UploadedFilesTest.php
@@ -228,7 +228,7 @@ class UploadedFilesTest extends PHPUnit\Framework\TestCase
         $movedFileContents = ob_get_clean();
 
         $this->assertEquals($contents, $movedFileContents);
-        $this->assertFileNotExists($uploadedFile->file);
+        $this->assertFileDoesNotExist($uploadedFile->file);
     }
 
     public static function providerCreateFromEnvironment()