for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Flatdown\Tests;
class GeneralApiTest extends BaseTestCase
{
public function testRootHttp302()
$response = $this->call($this->createRequest('GET', '/'));
$this->assertEquals(302, $response->getStatusCode());
$this->assertTrue($response->hasHeader('Location'));
}
public function testIndexHttp200()
$response = $this->call($this->createRequest('GET', '/_index'));
$this->assertEquals(200, $response->getStatusCode());
public function testIndexWithSlashHttp301()
$response = $this->call($this->createRequest('GET', '/_index/'));
$this->assertEquals(301, $response->getStatusCode());
public function testDemoHttp200()
$response = $this->call($this->createRequest('GET', '/demo'));
public function testHttp404()
$response = $this->call($this->createRequest('GET', '/foobar'));
$this->assertEquals(404, $response->getStatusCode());