Created
February 17, 2018 13:28
-
-
Save rodrigoSyscop/0221634d98281aa24b707b2b1e962e08 to your computer and use it in GitHub Desktop.
framework/tests/indexTest.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // framework/tests/indexTest.php | |
| use PHPUnit\Framework\TestCase; | |
| class IndexTest extends TestCase | |
| { | |
| public function testHello() | |
| { | |
| $_GET['name'] = 'Fabien'; | |
| ob_start(); | |
| include 'index.php'; | |
| $content = ob_get_clean(); | |
| $this->assertEquals('Hello Fabien', $content); | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment