We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit 35b3e62c authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

! Support for just PHPUnit_Framework_TestCase

parent 7eb3ec38
......@@ -122,10 +122,10 @@ class EcomDev_PHPUnit_Test_Suite extends PHPUnit_Framework_TestSuite
$className = uc_words(ltrim($classPath, DS), '_', DS);
// Add unit test case only
// if it is a valid class extended from EcomDev_PHPUnit_Test_Case
// if it is a valid class extended from PHPUnit_Framework_TestCase
if (class_exists($className, true)) {
$reflectionClass = EcomDev_Utils_Reflection::getReflection($className);
if (!$reflectionClass->isSubclassOf('EcomDev_PHPUnit_Test_Case')
if (!$reflectionClass->isSubclassOf('PHPUnit_Framework_TestCase')
|| $reflectionClass->isAbstract()) {
continue;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment