summaryrefslogtreecommitdiffstats
path: root/php-phpunit-PHPUnit-SkeletonGenerator-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-05-13 15:32:31 +0200
committerRemi Collet <fedora@famillecollet.com>2014-05-13 15:32:31 +0200
commitd8e3eb5f3b1593e76f236149fe214746bf9e2cf9 (patch)
tree126ee739e3ccf348e8b712cffe89985464997367 /php-phpunit-PHPUnit-SkeletonGenerator-rpm.patch
parent9ae2ee4c1c2e9d670802784323e2470c16e822b7 (diff)
php-phpunit-PHPUnit-SkeletonGenerator: 2.0.0
Diffstat (limited to 'php-phpunit-PHPUnit-SkeletonGenerator-rpm.patch')
-rw-r--r--php-phpunit-PHPUnit-SkeletonGenerator-rpm.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/php-phpunit-PHPUnit-SkeletonGenerator-rpm.patch b/php-phpunit-PHPUnit-SkeletonGenerator-rpm.patch
new file mode 100644
index 0000000..7f370df
--- /dev/null
+++ b/php-phpunit-PHPUnit-SkeletonGenerator-rpm.patch
@@ -0,0 +1,34 @@
+diff -up phpunit-skeleton-generator-e933d394bdfacec34b7ff4e8fc53c625e09e9721/phpunit-skelgen.rpm phpunit-skeleton-generator-e933d394bdfacec34b7ff4e8fc53c625e09e9721/phpunit-skelgen
+--- phpunit-skeleton-generator-e933d394bdfacec34b7ff4e8fc53c625e09e9721/phpunit-skelgen.rpm 2014-05-13 15:03:03.000000000 +0200
++++ phpunit-skeleton-generator-e933d394bdfacec34b7ff4e8fc53c625e09e9721/phpunit-skelgen 2014-05-13 15:04:42.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env php
++#!/usr/bin/php
+ <?php
+ /**
+ * phpunit-skeleton-generator
+@@ -42,23 +42,7 @@
+ * @since File available since Release 1.0.0
+ */
+
+-$loaded = false;
+-
+-foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
+- if (file_exists($file)) {
+- require $file;
+- $loaded = true;
+- break;
+- }
+-}
+-
+-if (!$loaded) {
+- die(
+- '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
+- );
+-}
++require '/usr/share/php/SebastianBergmann/PHPUnit/SkeletonGenerator/autoload.php';
+
+ $application = new SebastianBergmann\PHPUnit\SkeletonGenerator\CLI\Application;
+ $application->run();