add PHP 7.1 typehints

This commit is contained in:
TomasVotruba
2017-11-30 10:27:01 +01:00
committed by Jaap van Otterdijk
parent f9d1a0c177
commit 4a9675841b
64 changed files with 410 additions and 430 deletions
@@ -24,12 +24,12 @@ final class DocblocksWithAnnotationsTest extends TestCase
/**
* Call Mockery::close after each test.
*/
public function tearDown()
public function tearDown(): void
{
m::close();
}
public function testDocblockWithAnnotations()
public function testDocblockWithAnnotations(): void
{
$docComment = <<<DOCCOMMENT
/**
@@ -28,12 +28,12 @@ class InterpretingDocBlocksTest extends TestCase
/**
* Call Mockery::close after each test.
*/
public function tearDown()
public function tearDown(): void
{
m::close();
}
public function testInterpretingASimpleDocBlock()
public function testInterpretingASimpleDocBlock(): void
{
/**
* @var DocBlock $docblock
@@ -56,7 +56,7 @@ DESCRIPTION;
$this->assertEmpty($docblock->getTags());
}
public function testInterpretingTags()
public function testInterpretingTags(): void
{
/**
* @var DocBlock $docblock
@@ -78,7 +78,7 @@ DESCRIPTION;
$this->assertSame('', (string)$seeTag->getDescription());
}
public function testDescriptionsCanEscapeAtSignsAndClosingBraces()
public function testDescriptionsCanEscapeAtSignsAndClosingBraces(): void
{
/**
* @var string $docComment
@@ -24,12 +24,12 @@ class ReconstitutingADocBlockTest extends TestCase
/**
* Call Mockery::close after each test.
*/
public function tearDown()
public function tearDown(): void
{
m::close();
}
public function testReconstituteADocBlock()
public function testReconstituteADocBlock(): void
{
/**
* @var string $docComment
+2 -2
View File
@@ -26,12 +26,12 @@ class UsingTagsTest extends TestCase
/**
* Call Mockery::close after each test.
*/
public function tearDown()
public function tearDown(): void
{
m::close();
}
public function testAddingYourOwnTagUsingAStaticMethodAsFactory()
public function testAddingYourOwnTagUsingAStaticMethodAsFactory(): void
{
/**
* @var object[] $customTagObjects