There seems to be something wrong with the test code for the exercise ‘Lucky Numbers’ in the PHP track. I tested with code that passed in the online editor, here is the output:
´´´bash shell
PHPUnit 9.6.17 by Sebastian Bergmann and contributors.
EEE.EE 6 / 6 (100%)
Time: 00:00.014, Memory: 4.00 MB
There were 5 errors:
- LuckyNumbersTest::testSumUp
ArgumentCountError: Too few arguments to function LuckyNumbersTest::testSumUp(), 0 passed in /usr/share/php/PHPUnit/Framework/TestCase.php on line 1612 and exactly 3 expected
/home/brats/exercism/php/lucky-numbers/LuckyNumbersTest.php:19
- LuckyNumbersTest::testIsPalindrome
ArgumentCountError: Too few arguments to function LuckyNumbersTest::testIsPalindrome(), 0 passed in /usr/share/php/PHPUnit/Framework/TestCase.php on line 1612 and exactly 1 expected
/home/brats/exercism/php/lucky-numbers/LuckyNumbersTest.php:49
- LuckyNumbersTest::testIsNoPalindrome
ArgumentCountError: Too few arguments to function LuckyNumbersTest::testIsNoPalindrome(), 0 passed in /usr/share/php/PHPUnit/Framework/TestCase.php on line 1612 and exactly 1 expected
/home/brats/exercism/php/lucky-numbers/LuckyNumbersTest.php:74
- LuckyNumbersTest::testErrorMessageForInvalidInput
ArgumentCountError: Too few arguments to function LuckyNumbersTest::testErrorMessageForInvalidInput(), 0 passed in /usr/share/php/PHPUnit/Framework/TestCase.php on line 1612 and exactly 1 expected
/home/brats/exercism/php/lucky-numbers/LuckyNumbersTest.php:110
- LuckyNumbersTest::testErrorMessageForValidInput
ArgumentCountError: Too few arguments to function LuckyNumbersTest::testErrorMessageForValidInput(), 0 passed in /usr/share/php/PHPUnit/Framework/TestCase.php on line 1612 and exactly 1 expected
/home/brats/exercism/php/lucky-numbers/LuckyNumbersTest.php:135
ERRORS!
Tests: 6, Assertions: 1, Errors: 5.
´´´
