mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix CS
This commit is contained in:
@@ -31,16 +31,16 @@ class ApacheTest extends \PhraseanetTestCase
|
||||
touch($file);
|
||||
}
|
||||
|
||||
$mapping = array(array(
|
||||
$mapping = [[
|
||||
'directory' => $dir,
|
||||
'mount-point' => 'mp4-videos',
|
||||
'passphrase' => '123456',
|
||||
));
|
||||
]];
|
||||
|
||||
return array(
|
||||
array(array(), null, '/path/to/file'),
|
||||
array($mapping, null, '/path/to/file'),
|
||||
array($mapping, '/^\/mp4-videos\/[a-zA-Z0-9]+\/[0-9a-f]+\/to\/file$/', $file),
|
||||
);
|
||||
return [
|
||||
[[], null, '/path/to/file'],
|
||||
[$mapping, null, '/path/to/file'],
|
||||
[$mapping, '/^\/mp4-videos\/[a-zA-Z0-9]+\/[0-9a-f]+\/to\/file$/', $file],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@@ -66,19 +66,19 @@ class H264FactoryTest extends \PhraseanetTestCase
|
||||
|
||||
public function provideTypes()
|
||||
{
|
||||
return array(
|
||||
array('nginx', $this->getNginxMapping(), 'Alchemy\Phrasea\Http\H264PseudoStreaming\Nginx'),
|
||||
array('apache', $this->getNginxMapping(), 'Alchemy\Phrasea\Http\H264PseudoStreaming\Apache'),
|
||||
array('apache2', $this->getNginxMapping(), 'Alchemy\Phrasea\Http\H264PseudoStreaming\Apache'),
|
||||
);
|
||||
return [
|
||||
['nginx', $this->getNginxMapping(), 'Alchemy\Phrasea\Http\H264PseudoStreaming\Nginx'],
|
||||
['apache', $this->getNginxMapping(), 'Alchemy\Phrasea\Http\H264PseudoStreaming\Apache'],
|
||||
['apache2', $this->getNginxMapping(), 'Alchemy\Phrasea\Http\H264PseudoStreaming\Apache'],
|
||||
];
|
||||
}
|
||||
|
||||
private function getNginxMapping()
|
||||
{
|
||||
return array(array(
|
||||
return [[
|
||||
'directory' => __DIR__ . '/../../../../files/',
|
||||
'mount-point' => '/protected/',
|
||||
'passphrase' => 'dfdskqhfsfilddsmfmqsdmlfomqs',
|
||||
));
|
||||
]];
|
||||
}
|
||||
}
|
||||
|
@@ -31,16 +31,16 @@ class NginxTest extends \PhraseanetTestCase
|
||||
touch($file);
|
||||
}
|
||||
|
||||
$mapping = array(array(
|
||||
$mapping = [[
|
||||
'directory' => $dir,
|
||||
'mount-point' => 'mp4-videos',
|
||||
'passphrase' => '123456',
|
||||
));
|
||||
]];
|
||||
|
||||
return array(
|
||||
array(array(), null, '/path/to/file'),
|
||||
array($mapping, null, '/path/to/file'),
|
||||
array($mapping, '/^\/mp4-videos\/to\/file\?hash=[a-zA-Z0-9-_+]+&expires=[0-9]+/', $file),
|
||||
);
|
||||
return [
|
||||
[[], null, '/path/to/file'],
|
||||
[$mapping, null, '/path/to/file'],
|
||||
[$mapping, '/^\/mp4-videos\/to\/file\?hash=[a-zA-Z0-9-_+]+&expires=[0-9]+/', $file],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user