while giving command

zf create action login

i get the error

PHPUnit is required in order to generate controller test stubs.

-------------any suggestions

Recommended Answers

i have php5.3.13 and PhpUnit 3.8 requires php5.4 above .....any other link ??

May I ask why are you going backward with certain requirements?

I hope understand it's hard to find packages that far back. But even you used the package there are certain PHP function might …

Jump to Post

All 10 Replies

Re: PHPUnit is required in order to generate controller test stubs. 80 80
Member Avatar

PHPUnit is required in order to generate controller test stubs.

The reason why that message appear because you don't have PHPUnit installed yet.

Installed PHPUnit and that message won't appear again.

OK, did you installed ZF2 yet (correctly) from the preivous thread that you post?

Re: PHPUnit is required in order to generate controller test stubs. 80 80

Try this Reference :
Click Here

Re: PHPUnit is required in order to generate controller test stubs. 80 80

last mich im using ZF1 and its all configured and runing and showing this error

Re: PHPUnit is required in order to generate controller test stubs. 80 80

@kakalahori

You need to install the PHPUnit module. This can be easily done via PEAR

http://pear.php.net/manual/en/installation.getting.php

Or via GIT

https://github.com/sebastianbergmann/phpunit/

I used PEAR in my set up as it also allows access to the pre compiled libraries.

Re: PHPUnit is required in order to generate controller test stubs. 80 80
Member Avatar

@kakalahori

last mich im using ZF1 and its all configured and runing and showing this error

OK, so you are using ZF1 now.

Squidge provided couple of links on how to installed PHPUnit module.

Try it and lets us know what issue you are still having with the PHPUnit module.

Re: PHPUnit is required in order to generate controller test stubs. 80 80

ihave php5.3.13 and PhpUnit 3.8 requires php5.4 above .....any other link ??

Re: PHPUnit is required in order to generate controller test stubs. 80 80

What is your test platform?

I use XAMPP

http://www.apachefriends.org/en/xampp.html

  • Apache 2.4.3
  • MySQL 5.5.27
  • PHP 5.4.7
  • phpMyAdmin 3.5.2.2

Then use either GIT or PEAR

EDIT Although installing Apache & MySQL as services fails currently under the new GUI

Re: PHPUnit is required in order to generate controller test stubs. 80 80
Member Avatar

i have php5.3.13 and PhpUnit 3.8 requires php5.4 above .....any other link ??

May I ask why are you going backward with certain requirements?

I hope understand it's hard to find packages that far back. But even you used the package there are certain PHP function might not work.

Read this and scroll down to (PHPUnit - The PHP Unit Testing framework):

http://pear.phpunit.de/

Re: PHPUnit is required in order to generate controller test stubs. 80 80

@LastMitch,

Thats the link i couldnt find :)

+1

Re: PHPUnit is required in order to generate controller test stubs. 80 80

finally i quited working with zend :P

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.