From 01fd740caaaaf7a289389d74b443363d25cafa87 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 12 Dec 2019 23:30:06 +0100 Subject: [PATCH] No void in php7.0 Signed-off-by: Roeland Jago Douma --- tests/lib/Files/Type/DetectionTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/lib/Files/Type/DetectionTest.php b/tests/lib/Files/Type/DetectionTest.php index c6dded1f6ff..b503e605f6e 100644 --- a/tests/lib/Files/Type/DetectionTest.php +++ b/tests/lib/Files/Type/DetectionTest.php @@ -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)); } -- 2.39.5