Last active
August 29, 2015 14:08
-
-
Save jwage/adf5cf776d4398f2bebc to your computer and use it in GitHub Desktop.
This file contains 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 | |
use PHPUnit_Framework_TestCase; | |
use Symfony\Component\DomCrawler\Crawler; | |
class SimpleHttpTest extends PHPUnit_Framework_TestCase | |
{ | |
public function testHttp() | |
{ | |
$crawler = new Crawler(file_get_contents('http://myapp.lcl/hello/Jon')); | |
$this->assertEquals( | |
'Hello Jon', | |
$crawler->filter('body > p')->text(), | |
'http://myapp.lcl/hello/jon should return "Hello Jon"' | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍