Tips to test libraries with upcoming PHP 7.0
by Remi Collet
Howdy,
When building locally RPM,
nice to run upstream test suite both with PHP 5 and PHP 7.
1/ use "php70" Software Collection from my repository
dnf --enablerepo=remi-php70 install php70
Notice: you also need to install all needed extensions
2/ add conditional to run the test suite
: Run upstream test suite
%{_bindir}/phpunit --verbose
if which php70; then
php70 %{_bindir}/phpunit --verbose
fi
This will be, of course, ignored in mock/koji
Remi.
Example:
+ : Run upstream test suite
+ /usr/bin/phpunit --verbose
PHPUnit 5.0.9 by Sebastian Bergmann and contributors.
Runtime: PHP 5.6.15
Configuration:
/dev/shm/BUILD/Autoload-19513be5913ed780836e3df5e68bfb5655630612/phpunit.xml.dist
Error: No code coverage driver is available
................................................................. 65 /
78 ( 83%)
............. 78 /
78 (100%)
Time: 61 ms, Memory: 5.50Mb
OK (78 tests, 151 assertions)
+ which php70
/usr/bin/php70
+ php70 /usr/bin/phpunit --verbose
PHPUnit 5.0.9 by Sebastian Bergmann and contributors.
Runtime: PHP 7.0.0RC7 with Xdebug 2.4.0beta1
Configuration:
/dev/shm/BUILD/Autoload-19513be5913ed780836e3df5e68bfb5655630612/phpunit.xml.dist
................................................................. 65 /
78 ( 83%)
............. 78 /
78 (100%)
Time: 272 ms, Memory: 4.00Mb
OK (78 tests, 151 assertions)
8 years
ApiGen in fedora ?
by Remi Collet
Howdy,
Perhaps it can be interesting to have "apigen" in Fedora repo.
https://github.com/apigen/apigen
But this will imply a ton of new packages (1 ton = 37 rpm)
apigen
php-apigen-theme-bootstrap
php-apigen-theme-default
php-herrera-io-annotations
php-herrera-io-box
php-herrera-io-json
php-herrera-io-phar-update
php-herrera-io-phpunit-test-case
php-herrera-io-version
php-kdyby-events
php-kukulich-fshl
php-latte
php-nette
php-nette-application
php-nette-bootstrap
php-nette-caching
php-nette-component-model
php-nette-database
php-nette-deprecated
php-nette-di
php-nette-finder
php-nette-forms
php-nette-http
php-nette-mail
php-nette-neon
php-nette-php-generator
php-nette-reflection
php-nette-robot-loader
php-nette-safe-stream
php-nette-security
php-nette-tester
php-nette-tokenizer
php-nette-utils
php-phine-exception
php-phine-path
php-tedivm-jshrink
php-tracy
Packages are available in my repo if you want to test this new app.
I don't know yet if I will submit it to fedora, I expect some feedback
before doing this. And, damn... 37 review :(
And dependency tree is a bit strange, with some "abandoned lib."
(herrera-io)
At least this is a proof our "autoloader" management works perfectly and
we don't need composer.
Else users can use the upstream big phar.
Remi.
8 years