Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Dec 24, 2014
1 parent 26c1425 commit ed4377f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/Unit/Dispatcher/DispatcherFactory.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

class DispatcherFactory_Test extends \PHPUnit_Framework_TestCase {

public function setUp() {
if(!defined("APP_NAMESPACE")) {
define("APP_NAMESPACE", "TestApp");
}
}

public function testDispatcherFactoryCreatesPageDispatcher() {
$cfg = new \Gt\Core\ConfigObj();
$request = $this->getMock("\Gt\Request\Request", ["getType"], [
Expand Down
3 changes: 3 additions & 0 deletions test/Unit/Dispatcher/PageDispatcher.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ class PageDispatcher_Test extends \PHPUnit_Framework_TestCase {
private $appNamespace = "TestApp";

public function setUp() {
if(!defined("APP_NAMESPACE")) {
define("APP_NAMESPACE", "TestApp");
}
$this->tmp = \Gt\Test\Helper::createTmpDir();
$this->pageDir = \Gt\Test\Helper::createTmpDir("/src/Page");

Expand Down

0 comments on commit ed4377f

Please sign in to comment.