Ist wahrscheinlich als Erweiterung für den Layer-8-Router zu sehen...
require_once 'PHPUnit/Framework.php';
function ben_code() {
echo 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
}
class AlphabetTest extends PHPUnit_Framework_TestCase
{
public function testAlphabet()
{
//Buffer output
ob_start();
//Run function
ben_code();
//Grab output and terminate buffer
$Text = ob_get_contents();
ob_end_clean();
//Compare with expected value. Note; alphabet can be lower or upper case
$this->assertEquals( strtoupper($Text), "ABCDEFGHIJKLMNOPQRSTUVWXYZ" );
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.