exercism/php/hello-world/hello-world_test.php
2016-08-15 14:08:39 -05:00

22 lines
438 B
PHP

<?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'));
}
}