$this->assertTrue($phpinstanceofMockPhpStorage,'An MockPhpStorage instance was returned from overridden settings.');
$this->assertIdentical(DRUPAL_ROOT.'/'.PublicStream::basePath().'/php',$php->getConfigurationValue('directory'),'Default file directory was used.');
// Test that a default storage class is set if it's empty.
$this->setSettings('test',array('class'=>NULL));
$php=PhpStorageFactory::get('test');
$this->assertTrue($phpinstanceofMTimeProtectedFileStorage,'An MTimeProtectedFileStorage instance was returned from overridden settings with no class.');
}
/**
* Sets the Settings() singleton.
*
* @param string $name
* The storage bin name to set.
* @param array $configuration
* An array of configuration to set. Will be merged with default values.