diff --git a/Request.php b/Request.php index 33f4efb5e..9f51e3b93 100644 --- a/Request.php +++ b/Request.php @@ -1589,7 +1589,7 @@ public function isNoCache() /** * Gets the preferred format for the response by inspecting, in the following order: * * the request format set using setRequestFormat - * * the values of the Accept HTTP header + * * the values of the Accept HTTP header. * * Note that if you use this method, you should send the "Vary: Accept" header * in the response to prevent any issues with intermediary HTTP caches. diff --git a/Tests/BinaryFileResponseTest.php b/Tests/BinaryFileResponseTest.php index 734f8e845..4f4a5606f 100644 --- a/Tests/BinaryFileResponseTest.php +++ b/Tests/BinaryFileResponseTest.php @@ -309,7 +309,7 @@ public function testDeleteFileAfterSend() $response->prepare($request); $response->sendContent(); - $this->assertFileNotExists($path); + $this->assertFileDoesNotExist($path); } public function testAcceptRangeOnUnsafeMethods() diff --git a/Tests/File/FileTest.php b/Tests/File/FileTest.php index 2ef259ed1..3559275df 100644 --- a/Tests/File/FileTest.php +++ b/Tests/File/FileTest.php @@ -60,7 +60,7 @@ public function testMove() $this->assertInstanceOf('Symfony\Component\HttpFoundation\File\File', $movedFile); $this->assertFileExists($targetPath); - $this->assertFileNotExists($path); + $this->assertFileDoesNotExist($path); $this->assertEquals(realpath($targetPath), $movedFile->getRealPath()); @unlink($targetPath); @@ -79,7 +79,7 @@ public function testMoveWithNewName() $movedFile = $file->move($targetDir, 'test.newname.gif'); $this->assertFileExists($targetPath); - $this->assertFileNotExists($path); + $this->assertFileDoesNotExist($path); $this->assertEquals(realpath($targetPath), $movedFile->getRealPath()); @unlink($targetPath); @@ -114,7 +114,7 @@ public function testMoveWithNonLatinName($filename, $sanitizedFilename) $this->assertInstanceOf('Symfony\Component\HttpFoundation\File\File', $movedFile); $this->assertFileExists($targetPath); - $this->assertFileNotExists($path); + $this->assertFileDoesNotExist($path); $this->assertEquals(realpath($targetPath), $movedFile->getRealPath()); @unlink($targetPath); @@ -134,7 +134,7 @@ public function testMoveToAnUnexistentDirectory() $movedFile = $file->move($targetDir); $this->assertFileExists($targetPath); - $this->assertFileNotExists($sourcePath); + $this->assertFileDoesNotExist($sourcePath); $this->assertEquals(realpath($targetPath), $movedFile->getRealPath()); @unlink($sourcePath); diff --git a/Tests/File/UploadedFileTest.php b/Tests/File/UploadedFileTest.php index 17d319581..4449b573f 100644 --- a/Tests/File/UploadedFileTest.php +++ b/Tests/File/UploadedFileTest.php @@ -223,7 +223,7 @@ public function testMoveLocalFileIsAllowedInTestMode() $movedFile = $file->move(__DIR__.'/Fixtures/directory'); $this->assertFileExists($targetPath); - $this->assertFileNotExists($path); + $this->assertFileDoesNotExist($path); $this->assertEquals(realpath($targetPath), $movedFile->getRealPath()); @unlink($targetPath); diff --git a/Tests/RedirectResponseTest.php b/Tests/RedirectResponseTest.php index 9d9797f7c..a4d99d839 100644 --- a/Tests/RedirectResponseTest.php +++ b/Tests/RedirectResponseTest.php @@ -20,7 +20,7 @@ public function testGenerateMetaRedirect() { $response = new RedirectResponse('foo.bar'); - $this->assertRegExp('##', preg_replace('/\s+/', ' ', $response->getContent())); + $this->assertMatchesRegularExpression('##', preg_replace('/\s+/', ' ', $response->getContent())); } public function testRedirectResponseConstructorEmptyUrl() diff --git a/Tests/ResponseHeaderBagTest.php b/Tests/ResponseHeaderBagTest.php index 18b3c36a6..8b54822dd 100644 --- a/Tests/ResponseHeaderBagTest.php +++ b/Tests/ResponseHeaderBagTest.php @@ -309,6 +309,6 @@ public function testDateHeaderWillBeRecreatedWhenHeadersAreReplaced() private function assertSetCookieHeader(string $expected, ResponseHeaderBag $actual) { - $this->assertRegExp('#^Set-Cookie:\s+'.preg_quote($expected, '#').'$#m', str_replace("\r\n", "\n", (string) $actual)); + $this->assertMatchesRegularExpression('#^Set-Cookie:\s+'.preg_quote($expected, '#').'$#m', str_replace("\r\n", "\n", (string) $actual)); } } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy