ZF-2583: Include TestHelper in any independent test suite and test class

Issue Type: Sub-task Created: 2008-02-06T10:32:49.000+0000 Last Updated: 2010-12-20T08:48:48.000+0000 Status: Resolved Fix version(s): - 1.11.2 (30/Dec/10)

Reporter: Simone Carletti (weppos) Assignee: Ramon Henrique Ornelas (ramon) Tags: Related issues: - ZF-10837



TestHelper should be require_once'd in any test suite that may be run independently.

Otherwise, Zend library will not be available in current include_path and you'll not be able to run a class specific unit test.

Let me show you a few examples:

// the following statement works fine phpunit --verbose Zend_Service_Yahoo_AllTests

// the following statements fail // Failed opening required 'Zend/*' ... phpunit --verbose Zend_Service_Yahoo_OfflineTest phpunit --verbose Zend_OpenId_ConsumerTest

// the following statement fails for the same reason as above phpunit --verbose Zend_OpenId_AllTests


Posted by Wil Sinclair (wil) on 2008-06-15T13:59:56.000+0000

Changing to comply with new IT coventions for components.

Posted by Ramon Henrique Ornelas (ramon) on 2010-12-20T08:48:28.000+0000

Fixed with the issue ZF-10837.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.