Fix tests

This commit is contained in:
Gabriel Caruso
2017-11-15 08:29:42 +01:00
committed by Jaap van Otterdijk
parent fd1a734d29
commit 7524aba21f
34 changed files with 1815 additions and 8 deletions
@@ -12,6 +12,7 @@
namespace phpDocumentor\Reflection;
use Mockery as m;
use PHPUnit\Framework\TestCase;
/**
@@ -19,6 +20,14 @@ use PHPUnit\Framework\TestCase;
*/
final class DocblocksWithAnnotationsTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
public function testDocblockWithAnnotations()
{
$docComment = <<<DOCCOMMENT
@@ -12,6 +12,7 @@
namespace phpDocumentor\Reflection;
use Mockery as m;
use phpDocumentor\Reflection\DocBlock\Description;
use phpDocumentor\Reflection\DocBlock\StandardTagFactory;
use phpDocumentor\Reflection\DocBlock\Tag;
@@ -23,6 +24,14 @@ use PHPUnit\Framework\TestCase;
*/
class InterpretingDocBlocksTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
public function testInterpretingASimpleDocBlock()
{
/**
@@ -12,10 +12,7 @@
namespace phpDocumentor\Reflection;
use phpDocumentor\Reflection\DocBlock\Description;
use phpDocumentor\Reflection\DocBlock\StandardTagFactory;
use phpDocumentor\Reflection\DocBlock\Tag;
use phpDocumentor\Reflection\DocBlock\Tags\See;
use Mockery as m;
use PHPUnit\Framework\TestCase;
/**
@@ -23,6 +20,14 @@ use PHPUnit\Framework\TestCase;
*/
class ReconstitutingADocBlockTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
public function testReconstituteADocBlock()
{
/**
+9 -1
View File
@@ -12,9 +12,9 @@
namespace phpDocumentor\Reflection;
use Mockery as m;
use phpDocumentor\Reflection\DocBlock\Description;
use phpDocumentor\Reflection\DocBlock\Tag;
use phpDocumentor\Reflection\DocBlock\Tags\See;
use PHPUnit\Framework\TestCase;
/**
@@ -22,6 +22,14 @@ use PHPUnit\Framework\TestCase;
*/
class UsingTagsTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
public function testAddingYourOwnTagUsingAStaticMethodAsFactory()
{
/**