Skip to content

Instantly share code, notes, and snippets.

View dmitrybelyakov's full-sized avatar

Dmitry Belyakov dmitrybelyakov

View GitHub Profile
@dmitrybelyakov
dmitrybelyakov / FailingTest.php
Created February 29, 2012 11:55
Bootstrap phpunit
<?php
require_once ('PHPUnit/Autoload.php');
class FailingTest extends \PHPUnit_Framework_TestCase
{
public function testTestThatWeJustFail()
{
$this->assertTrue(true);
}
@dmitrybelyakov
dmitrybelyakov / bootstrap.php
Created February 29, 2012 11:54
Bootstrap phpunit
<?php
ini_set("display_errors", 1);
chdir(dirname(__DIR__) . '/../../');
require_once 'vendor/.composer/autoload.php';
$appConfig = include 'config/application.config.php';
$listenerOptions = new Zend\Module\Listener\ListenerOptions($appConfig['module_listener_options']);
$defaultListeners = new Zend\Module\Listener\DefaultListenerAggregate($listenerOptions);
$defaultListeners->getConfigListener()->addConfigGlobPath('config/autoload/*.config.php');