Just a commit
This commit is contained in:
21
php/hello-world/hello-world_test.php
Normal file
21
php/hello-world/hello-world_test.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
require "hello-world.php";
|
||||
|
||||
class HelloWorldTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testNoName()
|
||||
{
|
||||
$this->assertEquals('Hello, World!', helloWorld());
|
||||
}
|
||||
|
||||
public function testSampleName()
|
||||
{
|
||||
$this->assertEquals('Hello, Alice!', helloWorld('Alice'));
|
||||
}
|
||||
|
||||
public function testAnotherSampleName()
|
||||
{
|
||||
$this->assertEquals('Hello, Bob!', helloWorld('Bob'));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user