Issues

ZF-2585: Remove code remnants and duplicate require statements

Issue Type: Sub-task Created: 2008-02-06T10:33:03.000+0000 Last Updated: 2010-12-15T11:30:47.000+0000 Status: Resolved Fix version(s): - 1.11.2 (30/Dec/10)

Reporter: Simone Carletti (weppos) Assignee: Marc Hodgins (mjh_ca) Tags: Related issues: Attachments: - ZF-2585.patch

Description

The most part of unit test files requires TestCase.php and/or TestSuite.php files even if they have already been included by TestHelper.

These remnants should be removed.

<pre class="highlight">
require_once dirname(dirname(dirname(__FILE__))) . '/TestHelper.php';
require_once "PHPUnit/Framework/TestCase.php";
require_once "PHPUnit/Framework/TestSuite.php";

will become

<pre class="highlight">
require_once dirname(dirname(dirname(__FILE__))) . '/TestHelper.php';

Comments

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

Changing to comply with new IT coventions for components.

Posted by Marc Hodgins (mjh_ca) on 2010-11-27T00:32:05.000+0000

Patch attached which cleans this up.

Also attached the (.sh) script used to do this in case further modifications are necessary. To use the script, run it from the /trunk/tests directory.

Posted by Marc Hodgins (mjh_ca) on 2010-12-15T11:30:45.000+0000

Committed to trunk in r23513, merged to 1.11 release branch in r23514

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts