phpunit

Testing protected methods using a proxy object:

$proxy = getProxy('sgEmail_Sender');
$result = $proxy->PROTECTED_createTestEmailBody($to, $from, $subject, $emailBody);

https://www.sitepoint.com/building-a-sparkpost-client-tdd-with-phpunit-and-mockery/
https://www.sitepoint.com/an-overview-of-phpunit-5-whats-new-whats-coming/
http://www.xaprb.com/blog/2008/08/19/how-to-unit-test-code-that-interacts-with-a-database/
http://www.theserverside.net/discussions/thread.tss?thread_id=23702
http://www.ibm.com/developerworks/opensource/library/os-php-unit/
http://devzone.zend.com/article/2772
http://stackoverflow.com/questions/175153/how-do-you-set-up-database-testing-using-the-php-simpletest-framework
http://www.ds-o.com/archives/63-PHPUnit-Database-Extension-DBUnit-Port.html
http://www.bennorthrop.com/Home/Blog/unit_testing_daos_and_database_code.php
http://stackoverflow.com/questions/30710/how-to-unit-test-an-object-with-database-queries
http://www.slideshare.net/mjlivelyjr/advanced-phpunit-testing
http://www.dallaway.com/acad/dbunit.html
http://www.softwaresecretweapons.com/jspwiki/unit-testing-database-mock
http://www.agiledata.org/essays/databaseTesting.html
http://www.javaranch.com/journal/2003/12/UnitTestingDatabaseCode.html
http://www.artima.com/weblogs/viewpost.jsp?thread=126923
http://www.dbunit.org/
http://www.agiledata.org/essays/tdd.html
http://codebetter.com/blogs/jeremy.miller/archive/2005/10/12/133017.aspx
http://www.oscon.com/oscon2009/public/schedule/detail/8049
http://www.databasejournal.com/features/mssql/article.php/3844791/Database-Unit-Testing.htm

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License