public function testRegisteringAutoload()
 {
     if (defined('HHVM_VERSION')) {
         $this->markTestSkipped('Autoloading is not tested on HHVM');
     }
     spl_autoload_unregister(array('Org\\Heigl\\Hyphenator\\Hyphenator', '__autoload'));
     //$this->assertNotContains(array('Org\Heigl\Hyphenator\Hyphenator', '__autoload'),spl_autoload_functions());
     h\Hyphenator::registerAutoload();
     $this->assertContains(array('Org\\Heigl\\Hyphenator\\Hyphenator', '__autoload'), spl_autoload_functions());
 }
 * @package    Org_Heigl_Hyphenator
 * @author     Andreas Heigl<*****@*****.**>
 * @copyright  2011-2011 Andreas Heigl
 * @license    @__LICENSEURL__@ @__LICENSENAME__@
 * @version    2.0.1
 * @since      05.09.2011
 */
// TODO: check include path
ini_set('date.timezone', 'Europe/Berlin');
ini_set('memory_limit', '512M');
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(realpath(__DIR__ . '/../src'), get_include_path())));
require_once __DIR__ . '/../vendor/autoload.php';
mb_internal_encoding('UTF-8');
require_once 'Org/Heigl/Hyphenator/Hyphenator.php';
\Org\Heigl\Hyphenator\Hyphenator::registerAutoload();
class UnitTestHelper
{
    /**
     * Access protected or private methods
     *
     * use the following code to access any protected or private class method
     * $obj = new MyClass();
     * $method = UnitTestHelper::getMethod($obj, 'nameOfMethod');
     * $result = $method->invoke($obj,'param1','param2');
     *
     * @param Object|string $obj
     * @param string $name
     *
     * @return method
     */