public function testRegister() { Autoloader::register(); $functions = spl_autoload_functions(); $this->assertSame(array('Bitpay\\Autoloader', 'autoload'), $functions[0]); }