Browse Source

No void in php7.0

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Roeland Jago Douma 4 years ago
parent
commit
01fd740caa
1 changed files with 5 additions and 5 deletions
  1. 5 5
      tests/lib/Files/Type/DetectionTest.php

+ 5 - 5
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));
 	}