Skip to content

Commit

Permalink
cleanup tests bootsrap
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed May 18, 2017
1 parent 3378aeb commit beb1885
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/KdybyTests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@
* For the full copyright and license information, please view the file license.md that was distributed with this source code.
*/

if ((!$loader = @include __DIR__ . '/../../vendor/autoload.php') && (!$loader = @include __DIR__ . '/../../../../autoload.php')) {
if (@!include __DIR__ . '/../../vendor/autoload.php') {
echo 'Install Nette Tester using `composer update --dev`';
exit(1);
}

// configure environment
Tester\Environment::setup();
class_alias('Tester\Assert', 'Assert');
date_default_timezone_set('Europe/Prague');

// create temporary directory
Expand Down

0 comments on commit beb1885

Please sign in to comment.