From 9fd8a940e0bd6094eed14d3d7bfa4e44467566cb Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 17 Aug 2020 14:24:05 +0200 Subject: [PATCH 1/2] replace the deprecated assertDirectoryNotExists() method --- src/Symfony/Component/Filesystem/Tests/FilesystemTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Filesystem/Tests/FilesystemTest.php b/src/Symfony/Component/Filesystem/Tests/FilesystemTest.php index 3f63a0570a..5f5dd355bb 100644 --- a/src/Symfony/Component/Filesystem/Tests/FilesystemTest.php +++ b/src/Symfony/Component/Filesystem/Tests/FilesystemTest.php @@ -825,7 +825,7 @@ class FilesystemTest extends FilesystemTestCase $this->assertFalse(is_link($link)); $this->assertFalse(is_file($link)); - $this->assertDirectoryNotExists($link); + $this->assertDirectoryDoesNotExist($link); } public function testSymlinkIsOverwrittenIfPointsToDifferentTarget() From 4e68c9091cbbbd70d560a7c6f034223711cff7c3 Mon Sep 17 00:00:00 2001 From: Maxime Steinhausser Date: Mon, 17 Aug 2020 15:45:12 +0200 Subject: [PATCH 2/2] Fix tests namespaces --- .../Console/Tests/Formatter/NullOutputFormatterStyleTest.php | 2 +- .../Console/Tests/Formatter/NullOutputFormatterTest.php | 2 +- src/Symfony/Component/Validator/Tests/ValidationTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/Console/Tests/Formatter/NullOutputFormatterStyleTest.php b/src/Symfony/Component/Console/Tests/Formatter/NullOutputFormatterStyleTest.php index 616e7f7141..08b24ceca6 100644 --- a/src/Symfony/Component/Console/Tests/Formatter/NullOutputFormatterStyleTest.php +++ b/src/Symfony/Component/Console/Tests/Formatter/NullOutputFormatterStyleTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Console\Tests\Output; +namespace Symfony\Component\Console\Tests\Formatter; use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Formatter\NullOutputFormatterStyle; diff --git a/src/Symfony/Component/Console/Tests/Formatter/NullOutputFormatterTest.php b/src/Symfony/Component/Console/Tests/Formatter/NullOutputFormatterTest.php index a717cf3d51..78dab00ca7 100644 --- a/src/Symfony/Component/Console/Tests/Formatter/NullOutputFormatterTest.php +++ b/src/Symfony/Component/Console/Tests/Formatter/NullOutputFormatterTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Console\Tests\Output; +namespace Symfony\Component\Console\Tests\Formatter; use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Formatter\NullOutputFormatter; diff --git a/src/Symfony/Component/Validator/Tests/ValidationTest.php b/src/Symfony/Component/Validator/Tests/ValidationTest.php index 0b8888a560..1a331cf4e3 100644 --- a/src/Symfony/Component/Validator/Tests/ValidationTest.php +++ b/src/Symfony/Component/Validator/Tests/ValidationTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Validator\Tests\Validator; +namespace Symfony\Component\Validator\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Email;