public function testConfigure()
{
$options = Fixtures::getPhpArrayConfig();
// Mocking the ConfigLoader with the load method
$configLoader = $this->getMockBuilder('Cascade\\Config\\ConfigLoader')->disableOriginalConstructor()->setMethods(array('load'))->getMock();
$configLoader->method('load')->willReturn($options);
// Mocking the config object and set expectations for the configure methods
$config = $this->getMockBuilder('Cascade\\Config')->setConstructorArgs(array($options, $configLoader))->setMethods(array('configureFormatters', 'configureProcessors', 'configureHandlers', 'configureLoggers'))->getMock();
$config->expects($this->once())->method('configureFormatters');
$config->expects($this->once())->method('configureProcessors');
$config->expects($this->once())->method('configureHandlers');
$config->expects($this->once())->method('configureLoggers');
$config->load();
$config->configure();
}