We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62c12ef commit fe818b8Copy full SHA for fe818b8
1 file changed
tests/bootstrap.php
@@ -7,21 +7,14 @@
7
* @author Sebastian Mordziol <s.mordziol@mistralys.eu>
8
*/
9
10
- /**
11
- * The tests root folder (this file's location)
12
- * @var string
13
- */
14
- define('TESTS_ROOT', __DIR__ );
+declare(strict_types=1);
15
16
- $autoloader = realpath(TESTS_ROOT.'/../vendor/autoload.php');
17
-
18
- if($autoloader === false)
19
- {
20
- die('ERROR: The autoloader is not present. Run composer install first.');
21
- }
+$autoloader = __DIR__.'/../vendor/autoload.php';
22
23
24
- * The composer autoloader
25
26
- require_once $autoloader;
+if(!file_exists($autoloader))
+{
+ die('ERROR: The autoloader is not present. Run composer install first.');
+}
+
+require_once $autoloader;
27
0 commit comments