From dffa0a73a7f34ee1a11db07cfeed9c2b7a6a3c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Qu=E1=BB=B3nh=20Nguy=E1=BB=85n?= Date: Tue, 2 Jul 2024 05:30:29 +0700 Subject: [PATCH] Fix typo for IO tests (#12027) --- tests/Composer/Test/IO/ConsoleIOTest.php | 2 +- tests/Composer/Test/IO/NullIOTest.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Composer/Test/IO/ConsoleIOTest.php b/tests/Composer/Test/IO/ConsoleIOTest.php index ddac19b27..26f04e39f 100644 --- a/tests/Composer/Test/IO/ConsoleIOTest.php +++ b/tests/Composer/Test/IO/ConsoleIOTest.php @@ -255,7 +255,7 @@ class ConsoleIOTest extends TestCase self::assertEquals(['1'], $result); } - public function testSetAndgetAuthentication(): void + public function testSetAndGetAuthentication(): void { $inputMock = $this->getMockBuilder('Symfony\Component\Console\Input\InputInterface')->getMock(); $outputMock = $this->getMockBuilder('Symfony\Component\Console\Output\OutputInterface')->getMock(); diff --git a/tests/Composer/Test/IO/NullIOTest.php b/tests/Composer/Test/IO/NullIOTest.php index 987ea7071..c33a372bf 100644 --- a/tests/Composer/Test/IO/NullIOTest.php +++ b/tests/Composer/Test/IO/NullIOTest.php @@ -24,7 +24,7 @@ class NullIOTest extends TestCase self::assertFalse($io->isInteractive()); } - public function testhasAuthentication(): void + public function testHasAuthentication(): void { $io = new NullIO(); @@ -38,7 +38,7 @@ class NullIOTest extends TestCase self::assertNull($io->askAndHideAnswer('foo')); } - public function testgetAuthentications(): void + public function testGetAuthentications(): void { $io = new NullIO(); @@ -58,7 +58,7 @@ class NullIOTest extends TestCase { $io = new NullIO(); - self::assertEquals(false, $io->askConfirmation('bar', false)); + self::assertFalse($io->askConfirmation('bar', false)); } public function testAskAndValidate(): void