exercism/php/hello-world/hello-world_test.php

22 lines
438 B
PHP
Raw Normal View History

2016-08-15 19:08:39 +00:00
<?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'));
}
}