for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class AccountTest extends \LocalWebTestCase
{
public function testIndexAction()
$response = $this->call( 'GET', '/unittest/profile' );
$this->assertEquals( 200, $response->getStatusCode() );
$this->assertStringContainsString( 'account-profile', (string) $response->getBody() );
$this->assertStringContainsString( 'account-history', (string) $response->getBody() );
$this->assertStringContainsString( 'account-favorite', (string) $response->getBody() );
$this->assertStringContainsString( 'account-watch', (string) $response->getBody() );
}
public function testIndexActionFavorite()
$response = $this->call( 'GET', '/unittest/profile/favorite' );
public function testIndexActionWatch()
$response = $this->call( 'GET', '/unittest/profile/watch' );
public function testDownloadAction()
$response = $this->call( 'GET', '/unittest/profile/download/0' );
$this->assertEquals( 401, $response->getStatusCode() );