From 5ffd419869d51b016295ea1653f525b277067b03 Mon Sep 17 00:00:00 2001 From: Joseph Walker Date: Thu, 20 Apr 2017 13:34:09 -0500 Subject: [PATCH] Updates Hello-World exercise skeleton and test spec. The Hello-World exercise has fallen out of date with the updated Hello-World description specified in the x-common definition. Update the test and skeleton to reflect this. --- exercises/hello-world/hello-world.php | 2 +- exercises/hello-world/hello-world_test.php | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/exercises/hello-world/hello-world.php b/exercises/hello-world/hello-world.php index 439fedcc..6f8ce238 100644 --- a/exercises/hello-world/hello-world.php +++ b/exercises/hello-world/hello-world.php @@ -5,7 +5,7 @@ // It's been provided as a convenience to get you started writing code faster. // -function helloWorld($name = null) +function helloWorld() { // // YOUR CODE GOES HERE diff --git a/exercises/hello-world/hello-world_test.php b/exercises/hello-world/hello-world_test.php index 5253b7c3..468a4f9a 100644 --- a/exercises/hello-world/hello-world_test.php +++ b/exercises/hello-world/hello-world_test.php @@ -4,18 +4,8 @@ class HelloWorldTest extends PHPUnit\Framework\TestCase { - public function testNoName() + public function testHelloWorld() { $this->assertEquals('Hello, World!', helloWorld()); } - - public function testSampleName() - { - $this->assertEquals('Hello, Alice!', helloWorld('Alice')); - } - - public function testAnotherSampleName() - { - $this->assertEquals('Hello, Bob!', helloWorld('Bob')); - } }