| 1 | <?php |
| 2 | /** |
| 3 | * Find the correct path to /tests/phpunit/bootstrap.php in core |
| 4 | * |
| 5 | * Takes MW_INSTALL_PATH environment variable into account. This is used by the |
| 6 | * test suite defined in mfe.suite.xml for MobileFrontend phpunit testing. |
| 7 | */ |
| 8 | |
| 9 | $IP = getenv( 'MW_INSTALL_PATH' ); |
| 10 | if ( $IP === false ) { |
| 11 | if ( realpath( '../..' ) ) { |
| 12 | $IP = realpath( '../..' ); |
| 13 | } else { |
| 14 | $IP = dirname( dirname( dirname( __DIR__ ) ) ); |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | require_once $IP . "/tests/phpunit/bootstrap.php"; |