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 | |
Yii::import('ext.httpclient.*'); | |
Yii::import('ext.httpclient.adapter.*'); | |
class PagesControllerTest extends PHPUnit_Framework_TestCase { | |
public function testHome() { | |
$client = new EHttpClient(TEST_BASE_URL.'/pages/home'); | |
$this->assertTrue($client->request()->isSuccessful()); |
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 Goutte\Client; | |
class LayoutLinksTest extends LibWebTestCase { | |
/** @test */ | |
public function shouldHaveTheRightLinksOnTheLayout() { | |
$client = new Client(); | |
$crawler = $client->request('GET', TEST_BASE_URL); |
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 Goutte\Client; | |
class SiteTest extends CTestCase { | |
protected $client; | |
public function setUp() { | |
parent::setUp(); | |
$this->client = new Client(); |