|
From: SourceForge.net <no...@so...> - 2011-05-06 13:16:33
|
Bugs item #3298274, was opened at 2011-05-06 15:16 Message generated for change (Tracker Item Submitted) made by aaberer You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3298274&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Unit test framework Group: v1.0 (example) Status: Open Resolution: None Priority: 5 Private: No Submitted By: Alexander Aberer (aaberer) Assigned to: Nobody/Anonymous (nobody) Summary: Problem with SimpleFileLoader and global variables Initial Comment: We use SimpleTest for testing our software components which are mostly based on the Prado PHP framework (http://www.pradoframework.com). This is why some of our tests depend that the Prado framework is included and a global Prado application is started. Does test files that depend on the Prado application include some code in the header which initializes the framework if required. This however causes a problem with SimpleFileLoader::load() where the test files are included: The contents of $existing_globals is empty after the framework is initialized (Prado is a bit demanding... ;)). We fixed this problem by patching SimpleFileLoader::load() in the file test_case.php. Our solution was it to define $existing_globals as a member variable. As I see it the change is only minor and it did not break anything else for us. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3298274&group_id=76550 |