Cascade\Tests\Config\Loader\ClassLoader\HandlerLoaderTest::testHandlers PHP Method

testHandlers() public method

Test the extra option handlers
public testHandlers ( string $class, string $optionName, mixed $optionValue, string $calledMethodName )
$class string Class name
$optionName string Option name
$optionValue mixed Option value
$calledMethodName string Expected called method name
    public function testHandlers($class, $optionName, $optionValue, $calledMethodName)
    {
        $options = array();
        new HandlerLoader($options);
        // Test if handler exists and return it
        $closure = $this->getHandler($class, $optionName);
        if ($class == '*') {
            $class = 'Monolog\\Handler\\TestHandler';
        }
        $this->doTestMethodCalledInHandler($class, $calledMethodName, $optionValue, $closure);
    }