Skip to content

Commit

Permalink
Fixing Tester\Bootstrap::resolveRoot()
Browse files Browse the repository at this point in the history
  • Loading branch information
bacinsky committed Jun 4, 2017
1 parent 7ab65af commit ffb73f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/WebinoDev/Tester/Bootstrap.php
Expand Up @@ -39,10 +39,14 @@ public function __invoke()
ini_set('date.timezone', 'Europe/Bratislava');
}

/**
* @return string
*/
protected function resolveRoot()
{
$dir = $this->dir . '/../../._test/';
$zend = $dir . 'ZendSkeletonApplication';
return file_exists($zend) ? $zend : $dir . 'WebinoSkeletonApplication';
$root = file_exists($zend) ? $zend : $dir . 'WebinoSkeletonApplication';
return file_exists($root) ? $root : $this->dir;
}
}

0 comments on commit ffb73f7

Please sign in to comment.