No void in php7.0

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/18388/head
Roeland Jago Douma 2019-12-12 23:30:06 +07:00
parent 18975b3e1d
commit 01fd740caa
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 5 additions and 5 deletions

@ -62,7 +62,7 @@ class DetectionTest extends \Test\TestCase {
* @param string $path
* @param string $expected
*/
public function testDetectPath(string $path, string $expected): void {
public function testDetectPath(string $path, string $expected) {
$this->assertEquals($expected, $this->detection->detectPath($path));
}
@ -82,7 +82,7 @@ class DetectionTest extends \Test\TestCase {
* @param string $path
* @param string $expected
*/
public function testDetectContent(string $path, string $expected): void {
public function testDetectContent(string $path, string $expected) {
$this->assertEquals($expected, $this->detection->detectContent(\OC::$SERVERROOT . '/tests/data' . $path));
}
@ -102,11 +102,11 @@ class DetectionTest extends \Test\TestCase {
* @param string $path
* @param string $expected
*/
public function testDetect(string $path, string $expected): void {
public function testDetect(string $path, string $expected) {
$this->assertEquals($expected, $this->detection->detect(\OC::$SERVERROOT . '/tests/data' . $path));
}
public function testDetectString(): void {
public function testDetectString() {
$result = $this->detection->detectString('/data/data.tar.gz');
$expected = 'text/plain';
$this->assertEquals($expected, $result);
@ -125,7 +125,7 @@ class DetectionTest extends \Test\TestCase {
* @param string $mimeType
* @param string $expected
*/
public function testGetSecureMimeType(string $mimeType, string $expected): void {
public function testGetSecureMimeType(string $mimeType, string $expected) {
$this->assertEquals($expected, $this->detection->getSecureMimeType($mimeType));
}