22 lines
438 B
PHP
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'));
|
|
}
|
|
}
|