/** * testInit * * @since 3.0.0 */ public function testInit() { /* setup */ $autoloader = new Autoloader(); $autoloader->init('test'); /* actual */ $actualArray = $this->readAttribute($autoloader, '_autoloadArray'); /* compare */ $this->assertEquals('test', $actualArray[1]); }