Hi,
I have a function which has if condition like this
if (@!class_exists($className)) { return new static::$_service($module); }
else { return $className::getInstance($module); }
and i have written code(testcase) for phpunit that will check the function
and when the control goes to class_exists($className), it redirects to zend
autoloader function which is fine, but when it goes to Loadfile function in
loader.php, it tries to include the file that doesnot exist and gives the
error.This way my phpunit tetscase fails.if class doestn't exist then it
should go to 'return new static::$_service($module);' as per code.
Please suggest anything to get rid of this.
I am using zendstudio 8.1, zendframework 1.11
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/using-class-exists-without-warnings-in-1-8-tp658874p3844256.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]