• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JBZoo / PHPUnit / 6634606753

14 Oct 2023 08:28PM UTC coverage: 67.46%. Remained the same
6634606753

push

github

web-flow
PHP CS Fixer - `ordered_types` (#29)

170 of 252 relevant lines covered (67.46%)

4.98 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/functions/defines.php
1
<?php
2

3
/**
4
 * JBZoo Toolbox - PHPUnit.
5
 *
6
 * This file is part of the JBZoo Toolbox project.
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license    MIT
11
 * @copyright  Copyright (C) JBZoo.com, All rights reserved.
12
 * @see        https://github.com/JBZoo/PHPUnit
13
 */
14

15
declare(strict_types=1);
16

17
// phpcs:ignoreFile
18

19
// Paths
20
if (!\defined('JBZOO_PHPUNIT')) {
×
21
    \define('JBZOO_PHPUNIT', true);
×
22

23
    $paths = [
×
24
        \realpath('./../../../vendor/autoload.php'),
×
25
        \realpath('./../../vendor/autoload.php'),
×
26
        \realpath('./../vendor/autoload.php'),
×
27
        \realpath('./vendor/autoload.php'),
×
28
        \realpath('vendor/autoload.php'),
×
29
    ];
30

31
    foreach ($paths as $path) {
×
32
        if (\is_string($path) && \file_exists($path)) {
×
33
            if (!\defined('CRLF')) {
×
34
                \define('CRLF', "\r\n");
×
35
            }
36

37
            if (!\defined('LF')) {
×
38
                \define('LF', "\n");
×
39
            }
40

41
            if (!\defined('DS')) {
×
42
                \define('DS', \DIRECTORY_SEPARATOR);
×
43
            }
44

45
            if (!\defined('PROJECT_ROOT')) {
×
46
                /** @phan-suppress-next-line PhanUndeclaredGlobalVariable */
47
                \define('PROJECT_ROOT', \dirname($path, 2));
×
48
            }
49

50
            if (!\defined('PROJECT_BUILD')) {
×
51
                \define('PROJECT_BUILD', PROJECT_ROOT . DS . 'build');
×
52
            }
53

54
            if (!\defined('PROJECT_SRC')) {
×
55
                \define('PROJECT_SRC', PROJECT_ROOT . DS . 'src');
×
56
            }
57

58
            if (!\defined('PROJECT_TESTS')) {
×
59
                \define('PROJECT_TESTS', PROJECT_ROOT . DS . 'tests');
×
60
            }
61

62
            if (!\defined('PROJECT_RES')) {
×
63
                \define('PROJECT_RES', PROJECT_ROOT . DS . 'resources');
×
64
            }
65

66
            break;
×
67
        }
68
    }
69
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc