gjerokrsteski / pimf-framework

Micro framework for PHP that emphasises minimalism and simplicity
pimf-framework.de
MIT License
43 stars 16 forks source link

failures running phpUnit #4

Closed spresnac closed 10 years ago

spresnac commented 10 years ago

I have a lot of failures, when i clone pimf and run phpunit. Do i have to meet any requirements before running the tests or what else am i doing wrong?

You will find the complete output of the "phpunit" command here: https://gist.github.com/spresnac/11300992

gjerokrsteski commented 10 years ago

It looks like it is a lokal system/enviroment problem. At you pimf-framework fork, all unit-test are running successful. Please ensure that you have PHP extentions PDO, pdo_mysql and pdo_sqlite installed on your local system. And please ensure that you are using PHP >= 5.3

spresnac commented 10 years ago

Okay, thanks for answering. I have PHP 5.4 and the new phpUnit 4 (as phar) installed. Most failures come up with "headers already send by ...". Do you test with phpUnit as phar or via PEAR?

gjerokrsteski commented 10 years ago

That doesn't matter. You have a latest PHPUnit version. Please update your pimf-framework fork and run the unit-tests again. See here http://chriscase.cc/2011/02/syncing-a-forked-git-repository-with-a-master-repositorys-changes/

spresnac commented 10 years ago

I have already tested it on this commit 6d8390143bfd9e654126f42fa65d82c6196227e6, which is AFAIK the latest commit. I will investigate this "headers already send" problem on this weekend.

gjerokrsteski commented 10 years ago

you need to install latest PHP version, and reinstall latest PHP-Unit version from composer or download it as PHAR.

➜ wget https://phar.phpunit.de/phpunit.phar

➜ chmod +x phpunit.phar

➜ sudo mv phpunit.phar /usr/local/bin/phpunit

➜ phpunit --version

spresnac commented 10 years ago

Hi @gjerokrsteski , done that but nothing changed. I am still not able to get rid of this "header already sent" problem on Windows ... maybe, it is only Windows ;)

gjerokrsteski commented 10 years ago

It is important to reinstall PhpUnit to latest version from composer, because packages from PEAR-channel will no longer supported. Than it should work properly. Please find here how it works http://phpunit.de/manual/4.2/en/installation.html