* @covers FileRepo::__construct
*/
public function testFileRepoConstructionOptionCanNotBeAnEmptyArray() {
- new FileRepo( array() );
+ new FileRepo( [] );
}
/**
* @covers FileRepo::__construct
*/
public function testFileRepoConstructionOptionNeedNameKey() {
- new FileRepo( array(
+ new FileRepo( [
'backend' => 'foobar'
- ) );
+ ] );
}
/**
* @covers FileRepo::__construct
*/
public function testFileRepoConstructionOptionNeedBackendKey() {
- new FileRepo( array(
+ new FileRepo( [
'name' => 'foobar'
- ) );
+ ] );
}
/**
* @covers FileRepo::__construct
*/
public function testFileRepoConstructionWithRequiredOptions() {
- $f = new FileRepo( array(
+ $f = new FileRepo( [
'name' => 'FileRepoTestRepository',
- 'backend' => new FSFileBackend( array(
+ 'backend' => new FSFileBackend( [
'name' => 'local-testing',
'wikiId' => 'test_wiki',
- 'containerPaths' => array()
- ) )
- ) );
- $this->assertInstanceOf( 'FileRepo', $f );
+ 'containerPaths' => []
+ ] )
+ ] );
+ $this->assertInstanceOf( FileRepo::class, $f );
}
}