blob: 00683ae76e5a081a16248e146d56b5888cc11c16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
diff -up ./dbunit.rpm ./dbunit
--- ./dbunit.rpm 2015-10-02 16:35:17.448763973 +0200
+++ ./dbunit 2015-10-02 16:36:38.991090874 +0200
@@ -9,23 +9,7 @@
* file that was distributed with this source code.
*/
-foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
- if (file_exists($file)) {
- define('DBUNIT_COMPOSER_INSTALL', $file);
- break;
- }
-}
-
-unset($file);
-
-if (!defined('DBUNIT_COMPOSER_INSTALL')) {
- fwrite(STDERR,
- 'You need to set up the project dependencies using the following commands:' . PHP_EOL .
- 'wget http://getcomposer.org/composer.phar' . PHP_EOL .
- 'php composer.phar install' . PHP_EOL
- );
- die(1);
-}
+define('DBUNIT_COMPOSER_INSTALL', '/usr/share/php/PHPUnit/Autoload.php');
require DBUNIT_COMPOSER_INSTALL;
|