public function testLoaderRegisterAutoloadFailsWithoutSplAutoload() { if (function_exists('spl_autoload_register')) { $this->markTestSkipped("spl_autoload() is installed on this PHP installation; cannot test for failure"); } try { Loader::registerAutoload(); $this->fail('registerAutoload should fail without spl_autoload'); } catch (Zend_Exception $e) { } }