From 75b0a973fafb4767b6934c1dbad8c42769af6b77 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 18 Apr 2016 11:09:00 +0200 Subject: php-phpunit-PHPUnit-SkeletonGenerator: allow sebastian/version 2.0 --- composer.json | 41 ++++++++++++++++++++++++++++++ php-phpunit-PHPUnit-SkeletonGenerator.spec | 15 ++++++++--- 2 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..f17ea84 --- /dev/null +++ b/composer.json @@ -0,0 +1,41 @@ +{ + "name": "phpunit/phpunit-skeleton-generator", + "description": "Tool that can generate skeleton test classes from production code classes and vice versa", + "keywords": ["phpunit", "xunit", "testing", "skeleton"], + "homepage": "https://github.com/sebastianbergmann/phpunit-skeleton-generator", + "license": "BSD-3-Clause", + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit-skeleton-generator/issues" + }, + "require": { + "php": ">=5.3.3", + "phpunit/php-text-template": "~1.2", + "sebastian/version": "~1.0", + "symfony/console": "~2.4" + }, + "require-dev": { + "phpunit/phpunit": "~4.0", + "mikey179/vfsStream": "~1.2" + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "bin": [ + "phpunit-skelgen" + ], + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + } +} + diff --git a/php-phpunit-PHPUnit-SkeletonGenerator.spec b/php-phpunit-PHPUnit-SkeletonGenerator.spec index fab2c44..6b01285 100644 --- a/php-phpunit-PHPUnit-SkeletonGenerator.spec +++ b/php-phpunit-PHPUnit-SkeletonGenerator.spec @@ -17,7 +17,7 @@ Name: php-phpunit-PHPUnit-SkeletonGenerator Version: 2.0.1 -Release: 3%{?dist} +Release: 5%{?dist} Summary: Tool that can generate skeleton test classes Group: Development/Libraries @@ -57,7 +57,7 @@ Requires: php(language) >= 5.3.3 Requires: php-composer(phpunit/php-text-template) >= 1.2 Requires: php-composer(phpunit/php-text-template) < 2 Requires: php-composer(sebastian/version) >= 1.0 -Requires: php-composer(sebastian/version) < 2 +Requires: php-composer(sebastian/version) < 3 Requires: php-composer(symfony/console) >= 2.4 Requires: php-composer(symfony/console) < 3 # Need for our autoloader patch @@ -106,9 +106,15 @@ rm -rf %{buildroot} %if %{with_tests} %check cd build -phpunit \ +%{_bindir}/phpunit \ --bootstrap %{buildroot}%{php_home}/SebastianBergmann/PHPUnit/SkeletonGenerator/autoload.php \ --verbose + +if which php70; then + php70 %{_bindir}/phpunit \ + --bootstrap %{buildroot}%{php_home}/SebastianBergmann/PHPUnit/SkeletonGenerator/autoload.php \ + --verbose +fi %endif @@ -129,6 +135,9 @@ fi %changelog +* Mon Apr 18 2016 Remi Collet - 2.0.1-5 +- allow sebastian/version 2.0 + * Mon Jun 29 2015 Remi Collet - 2.0.1-3 - use $fedoraClassLoader autoloader -- cgit