public function testAutoloadValidPHPVisioClass() { $className = 'PHPVisio_IOFactory'; $result = PHPVisio_Autoloader::Load($className); // Check that class has been loaded $this->assertTrue(class_exists($className)); }
* This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPVisio * @package PHPVisio * @copyright Copyright (c) 2012 - 2012 PHPVisio (https://github.com/PHPOffice/PHPVisio) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ PHPVisio_Autoloader::Register(); // check mbstring.func_overload if (ini_get('mbstring.func_overload') & 2) { throw new Exception('Multibyte function overloading in PHP must be disabled for string functions (2).'); } /** * PHPVisio_Autoloader * * @category PHPVisio * @package PHPVisio * @copyright Copyright (c) 2006 - 2012 PHPVisio (https://github.com/Progi1984/PHPVisio) */ class PHPVisio_Autoloader { /** * Register the Autoloader with SPL