for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AlbumTest\Controller;
use Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase;
class IndexControllerTest extends AbstractHttpControllerTestCase
{
public function setUp()
$this->setApplicationConfig(
include './config/application.config.php'
);
parent::setUp();
}
public function testIndexActionCanBeAccessed()
$this->dispatch('/');
$this->assertResponseStatusCode(200);
$this->assertModuleName('Application');
$this->assertControllerName('Application\Controller\Index');
$this->assertControllerClass('IndexController');
$this->assertMatchedRouteName('home');