have first written a failing unit test. You can't write more of a unit test than is sufficient to fail, and not compiling is failing. You can't write more production code than is sufficient to pass the currently failing unit test. Robert C. Martin
function testRealNIFShouldBeValid() { $validateNif = new ValidateNif(); $this->assertTrue($validateNif->isValid('00000000T')); } } Error : Class 'Dojo\ValidateNif\ValidateNif' not found /Users/franiglesias/PhpstormProjects/dojo/tests/Dojo/ValidateNif/ValidateNifTest.php: 13
/Users/franiglesias/PhpstormProjects/dojo/tests/Dojo/ValidateNif/ValidateNifTest.php: 14 class ValidateNif { public function isValid(string $nif) { } }
the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz “. http://codingdojo.org/kata/FizzBuzz/