Skip to content

Commit 06d6b71

Browse files
author
Roman Syroeshko
committed
[CHANGED] "tests/bootstrap.php".
1 parent 2c81d5f commit 06d6b71

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

tests/bootstrap.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,10 @@
2323
}
2424

2525
$vendor = realpath(__DIR__ . '/../vendor');
26-
27-
if (file_exists($vendor . "/autoload.php")) {
28-
require $vendor . "/autoload.php";
26+
if (file_exists($vendor . '/autoload.php')) {
27+
require $vendor . '/autoload.php';
2928
} else {
30-
$vendor = realpath(__DIR__ . '/../../../');
31-
if (file_exists($vendor . "/autoload.php")) {
32-
require $vendor . "/autoload.php";
33-
} else {
34-
throw new Exception("Unable to load dependencies");
35-
}
29+
throw new Exception('Unable to load dependencies');
3630
}
3731

3832
spl_autoload_register(function ($class) {
@@ -49,5 +43,5 @@
4943
}
5044
});
5145

52-
require_once __DIR__ . "/../src/PhpWord/Autoloader.php";
46+
require_once __DIR__ . '/../src/PhpWord/Autoloader.php';
5347
\PhpOffice\PhpWord\Autoloader::register();

0 commit comments

Comments
 (0)