public function ConfigTest::testConfig_construct_config in One Click Upload 7.2
* @covers ::getTempDir * @covers ::getDeleteChunksOnSave * @covers ::getHashNameCallback * @covers ::getPreprocessCallback * @covers ::__construct
File
- flowphp/
test/ Unit/ ConfigTest.php, line 25
Class
- ConfigTest
- Config unit tests
Namespace
UnitCode
public function testConfig_construct_config() {
$exampleConfig = array(
'tempDir' => '/some/dir',
'deleteChunksOnSave' => TRUE,
'hashNameCallback' => '\\SomeNs\\SomeClass::someMethod',
'preprocessCallback' => '\\SomeNs\\SomeClass::preProcess',
);
$config = new Config($exampleConfig);
$this
->assertSame($exampleConfig['tempDir'], $config
->getTempDir());
$this
->assertSame($exampleConfig['deleteChunksOnSave'], $config
->getDeleteChunksOnSave());
$this
->assertSame($exampleConfig['hashNameCallback'], $config
->getHashNameCallback());
$this
->assertSame($exampleConfig['preprocessCallback'], $config
->getPreprocessCallback());
}