for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Zend Framework Application (http://mateuszsitek.com/projects/zendframework-application).
*
* @link http://github.com/ma-si/zendframework-application for the canonical source repository
* @copyright Copyright (c) 2006-2016 Aist Internet Technologies (http://aist.pl) All rights reserved.
* @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
*/
namespace ApplicationTest\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');