Fix file name of start page test
phpcs-errors:1646 phpunit-status:successful
This commit is contained in:
29
tests/startPageTest.php
Normal file
29
tests/startPageTest.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?PHP
|
||||
/**
|
||||
* This script contains tests for the home page.
|
||||
*
|
||||
* @author Joshua Ramon Enslin <joshua@jrenslin.de>
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
// phpcs:disable
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
final class StartPageTest extends TestCase {
|
||||
|
||||
public function testHTMLOutput():void {
|
||||
|
||||
include __DIR__ . "/../index.php";
|
||||
$output = $this->getActualOutput();
|
||||
|
||||
$this->assertEquals(
|
||||
true,
|
||||
is_string($output)
|
||||
);
|
||||
|
||||
ob_clean();
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user