Simple question. Why use require_once
to include classes that you use within a file? For example, if I create a class that extends Zend_Db_Table_Abstract
, I don't really need to have this in the class declaration file:
require_once "Zend/Db/Table/Select.php";
They are included by the auto-loader anyway. Is there a performance gain for explicitly declaring the "imports"? Is it for unit testing?