Hector Virgen wrote:
> 
> It looks like require() is being called on the filename somewhere (instead
> of require_once()). Do you have xdebug? A backtrace might help find it.
> 

Hi Hector,

Here is the trace from xdebug:

Call Stack:
    0.0004      54316   1. {main}()
/Applications/MAMP/bin/php5/bin/phpunit:0
    0.0809    4116572   2. PHPUnit_TextUI_Command::main()
/Applications/MAMP/bin/php5/bin/phpunit:52
    0.0809    4117272   3. PHPUnit_TextUI_Command->run()
/Applications/MAMP/bin/php5/lib/php/PHPUnit/TextUI/Command.php:147
    0.1161    5580368   4. PHPUnit_TextUI_TestRunner->doRun()
/Applications/MAMP/bin/php5/lib/php/PHPUnit/TextUI/Command.php:214
    0.4003    5709876   5. PHPUnit_Framework_TestSuite->run()
/Applications/MAMP/bin/php5/lib/php/PHPUnit/TextUI/TestRunner.php:350
    0.4005    5713480   6. PHPUnit_Framework_TestSuite->run()
/Applications/MAMP/bin/php5/lib/php/PHPUnit/Framework/TestSuite.php:675
    1.3801   15033248   7. PHPUnit_Framework_TestSuite->runTest()
/Applications/MAMP/bin/php5/lib/php/PHPUnit/Framework/TestSuite.php:732
    1.3801   15033412   8. PHPUnit_Framework_TestCase->run()
/Applications/MAMP/bin/php5/lib/php/PHPUnit/Framework/TestSuite.php:756
    1.3803   15038100   9. PHPUnit_Framework_TestResult->run()
/Applications/MAMP/bin/php5/lib/php/PHPUnit/Framework/TestCase.php:653
    1.3809   15040568  10. PHPUnit_Framework_TestCase->runBare()
/Applications/MAMP/bin/php5/lib/php/PHPUnit/Framework/TestResult.php:687
    1.3840   15064384  11. AboutControllerTest->setUp()
/Applications/MAMP/bin/php5/lib/php/PHPUnit/Framework/TestCase.php:701
    1.3841   15064448  12. ControllerTestCase->setUp()
/path/to/workspace/tests/application/controllers/AbountControllerTest.php:6
    1.3842   15064868  13. Zend_Test_PHPUnit_ControllerTestCase->setUp()
/path/to/workspace/tests/application/controllers/ControllerTestCase.php:13
    1.3842   15064932  14. Zend_Test_PHPUnit_ControllerTestCase->bootstrap()
/path/to/Zend/Test/PHPUnit/ControllerTestCase.php:127
    1.3890   15027444  15. call_user_func()
/path/to/Zend/Test/PHPUnit/ControllerTestCase.php:149
    1.3890   15027640  16. ControllerTestCase->appBootstrap()
/path/to/Zend/Test/PHPUnit/ControllerTestCase.php:0
    1.5148   15090612  17. Zend_Application->bootstrap()
/path/to/workspace/tests/application/controllers/ControllerTestCase.php:32
    1.5149   15090860  18.
Zend_Application_Bootstrap_BootstrapAbstract->bootstrap()
/path/to/Zend/Application.php:355
    1.5149   15091044  19.
Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap()
/path/to/Zend/Application/Bootstrap/BootstrapAbstract.php:582
    1.5920   15234152  20.
Zend_Application_Bootstrap_BootstrapAbstract->_executeResource()
/path/to/Zend/Application/Bootstrap/BootstrapAbstract.php:622
    1.5924   15235624  21. Zend_Application_Resource_Mail->init()
/path/to/Zend/Application/Bootstrap/BootstrapAbstract.php:679
    1.5924   15235688  22. Zend_Application_Resource_Mail->getMail()
/path/to/Zend/Application/Resource/Mail.php:47
    1.5939   15238816  23. Zend_Application_Resource_Mail->_setupTransport()
/path/to/Zend/Application/Resource/Mail.php:66
    1.5940   15239796  24. Zend_Loader_Autoloader::autoload()
/path/to/Zend/Application/Resource/Mail.php:110
    1.5943   15241080  25. call_user_func()
/path/to/Zend/Loader/Autoloader.php:130
    1.5943   15241276  26. Zend_Loader_Autoloader->_autoload()
/path/to/Zend/Loader/Autoloader.php:0
    1.5945   15241612  27. call_user_func()
/path/to/Zend/Loader/Autoloader.php:474
    1.5945   15241736  28. __lambda_func()
/path/to/Zend/Loader/Autoloader.php:0


It looks like the problem is in Zend/Application/Resource/Mail.php in the
_setupTransport method.  Which is interesting because I filed a bug on that
method just last week: http://framework.zend.com/issues/browse/ZF-9802 ....
could this be related?  I got around ZF-9802 by specifying
"Zend_Mail_Transport_Smtp" as the transport.type rather than just "smtp."

-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/PHPUnit-and-using-tearDown-on-Resource-Plugins-tp2173162p2173189.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to