N98\Util\AutoloadHandlerTest::disablingAndEnabling PHP Метод

disablingAndEnabling() публичный Метод

    public function disablingAndEnabling()
    {
        $handler = $this->create(null);
        $handler->setEnabled(false);
        $this->assertFalse($handler->__invoke("Test"));
        $handler->setEnabled(true);
        $this->setExpectedException('BadMethodCallException');
        $this->assertFalse($handler->__invoke("Test"));
        $this->fail('An expected exception has not been thrown');
    }