From f31dc6c6e5735686a2128ddaebd4197c4a4357c9 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Wed, 2 Oct 2019 20:15:14 +0200 Subject: [PATCH] Added missing return type hints --- .../test/Action/ShortUrl/CreateShortUrlActionTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/module/Rest/test/Action/ShortUrl/CreateShortUrlActionTest.php b/module/Rest/test/Action/ShortUrl/CreateShortUrlActionTest.php index d743ffa0..f2c2745b 100644 --- a/module/Rest/test/Action/ShortUrl/CreateShortUrlActionTest.php +++ b/module/Rest/test/Action/ShortUrl/CreateShortUrlActionTest.php @@ -36,14 +36,14 @@ class CreateShortUrlActionTest extends TestCase } /** @test */ - public function missingLongUrlParamReturnsError() + public function missingLongUrlParamReturnsError(): void { $response = $this->action->handle(new ServerRequest()); $this->assertEquals(400, $response->getStatusCode()); } /** @test */ - public function properShortcodeConversionReturnsData() + public function properShortcodeConversionReturnsData(): void { $this->urlShortener->urlToShortCode(Argument::type(Uri::class), Argument::type('array'), Argument::cetera()) ->willReturn( @@ -60,7 +60,7 @@ class CreateShortUrlActionTest extends TestCase } /** @test */ - public function anInvalidUrlReturnsError() + public function anInvalidUrlReturnsError(): void { $this->urlShortener->urlToShortCode(Argument::type(Uri::class), Argument::type('array'), Argument::cetera()) ->willThrow(InvalidUrlException::class) @@ -75,7 +75,7 @@ class CreateShortUrlActionTest extends TestCase } /** @test */ - public function nonUniqueSlugReturnsError() + public function nonUniqueSlugReturnsError(): void { $this->urlShortener->urlToShortCode( Argument::type(Uri::class), @@ -94,7 +94,7 @@ class CreateShortUrlActionTest extends TestCase } /** @test */ - public function aGenericExceptionWillReturnError() + public function aGenericExceptionWillReturnError(): void { $this->urlShortener->urlToShortCode(Argument::type(Uri::class), Argument::type('array'), Argument::cetera()) ->willThrow(Exception::class)