mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
add PHP 7.1 typehints
This commit is contained in:
committed by
Jaap van Otterdijk
parent
f9d1a0c177
commit
4a9675841b
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user