Returns the value of a flag used to determine whether plugins should
be loaded automatically if they have not been explicitly loaded.
public getAutoload ( ) : boolean | ||
Результат | boolean | TRUE if autoloading is enabled, FALSE otherwise |
/** * Tests setAutoload(). * * @depends testGetAutoloadDefaultsToNotAutoload * @return void */ public function testSetAutoload() { $this->assertSame($this->handler->setAutoload(true), $this->handler, 'setAutoload() does not provide a fluent interface'); $this->assertTrue($this->handler->getAutoload(), 'setAutoload() had no effect on getAutoload()'); }
/** * Ensures a newly instantiated handler does not default to autoload * * @return void */ public function testDefaultsToNotAutoload() { $this->assertFalse($this->handler->getAutoload()); }