Overview

Namespaces

  • None
  • tests
    • unit
      • barebones
        • utilities
      • lib

Classes

  • TestCase
  • tests\unit\barebones\utilities\ArraysTest
  • tests\unit\barebones\utilities\MathTest
  • tests\unit\BaseUnitTestCase
  • tests\unit\lib\BrowserIdentificationTest
  • tests\unit\lib\PathManagerTest
  • tests\unit\lib\UrlManagerTest
  • tests\unit\lib\VariantRulesTest
  • tests\unit\lib\VariantsManagerTest
  • Overview
  • Namespace
  • Class
 1: <?php
 2: require_once(__DIR__."/../../bootstrap/bootstrap.php");
 3: require_once(__DIR__."/../../vendor/autoload.php");
 4: 
 5: class TestCase extends PHPUnit_Framework_TestCase
 6: {
 7:     protected $app = null;
 8: 
 9:     public function setUp()
10:     {
11:         $this->app = require(__DIR__."/../../bootstrap/app.php");
12: 
13:         // session configurations
14:         $this->app['session.driver'] = new Azalea\Core\Session\ArraySessionHandler();
15: 
16:         // start me up
17:         $this->app->start();
18: 
19:         // environment will always be "testing"
20:         // Environment::setName("testing");
21:     }
22: 
23:     public function tearDown()
24:     {
25:         $this->app = null;
26:     }
27: }
28: 
29: ?>
30: 
API documentation generated by ApiGen