1: <?php
2: require_once(__DIR__."/../../vendor/autoload.php");
3:
4: class TestCase extends PHPUnit_Framework_TestCase
5: {
6: protected $app = null;
7:
8: public function setUp()
9: {
10: $this->app = require(__DIR__."/../../shared/app.php");
11:
12: // session configurations
13: $this->app['session.driver'] = new Azalea\Core\Session\ArraySessionHandler();
14:
15: // start me up
16: $this->app->start();
17:
18: // environment will always be "testing"
19: // Environment::setName("testing");
20: }
21:
22: public function tearDown()
23: {
24: $this->app = null;
25: }
26: }
27:
28: ?>