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
@@ -23,6 +23,14 @@ use PHPUnit\Framework\TestCase;
*/
class DescriptionFactoryTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @covers ::__construct
* @covers ::create
+8
View File
@@ -22,6 +22,14 @@ use PHPUnit\Framework\TestCase;
*/
class DescriptionTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @covers ::__construct
* @covers ::render
@@ -2,6 +2,7 @@
namespace phpDocumentor\Reflection\DocBlock;
use Mockery as m;
use phpDocumentor\Reflection\DocBlock\Tags\Example;
use PHPUnit\Framework\TestCase;
@@ -14,6 +15,14 @@ class ExampleFinderTest extends TestCase
/** @var ExampleFinder */
private $fixture;
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
public function setUp()
{
$this->fixture = new ExampleFinder();
+9
View File
@@ -12,6 +12,7 @@
namespace phpDocumentor\Reflection\DocBlock;
use Mockery as m;
use phpDocumentor\Reflection\DocBlock;
use PHPUnit\Framework\TestCase;
@@ -21,6 +22,14 @@ use PHPUnit\Framework\TestCase;
*/
class SerializerTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @covers ::__construct
* @covers ::getDocComment
@@ -31,6 +31,15 @@ use PHPUnit\Framework\TestCase;
*/
class StandardTagFactoryTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @covers ::__construct
* @covers ::create
+7 -1
View File
@@ -20,6 +20,13 @@ use PHPUnit\Framework\TestCase;
*/
class AuthorTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Author::__construct
@@ -157,5 +164,4 @@ class AuthorTest extends TestCase
{
$this->assertNull(Author::create('dfgr<'));
}
}
+9
View File
@@ -26,6 +26,15 @@ use PHPUnit\Framework\TestCase;
*/
class CoversTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Covers::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Description
@@ -24,6 +24,14 @@ use PHPUnit\Framework\TestCase;
*/
class DeprecatedTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Deprecated::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Description
+10
View File
@@ -2,6 +2,7 @@
namespace DocBlock\Tags;
use Mockery as m;
use phpDocumentor\Reflection\DocBlock\Tags\Example;
use PHPUnit\Framework\TestCase;
@@ -10,6 +11,15 @@ use PHPUnit\Framework\TestCase;
*/
class ExampleTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @covers ::create
* @covers ::__construct
@@ -13,6 +13,7 @@
namespace phpDocumentor\Reflection\DocBlock\Tags\Formatter;
use Mockery as m;
use phpDocumentor\Reflection\DocBlock\Description;
use phpDocumentor\Reflection\DocBlock\Tags\Link;
use phpDocumentor\Reflection\DocBlock\Tags\Param;
@@ -25,6 +26,14 @@ use PHPUnit\Framework\TestCase;
*/
class AlignFormatterTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @covers ::format
* @covers \phpDocumentor\Reflection\DocBlock\Tags\Formatter\AlignFormatter::__construct
@@ -12,6 +12,7 @@
namespace phpDocumentor\Reflection\DocBlock\Tags\Formatter;
use Mockery as m;
use phpDocumentor\Reflection\DocBlock\Description;
use phpDocumentor\Reflection\DocBlock\Tags\Generic;
use PHPUnit\Framework\TestCase;
@@ -21,6 +22,14 @@ use PHPUnit\Framework\TestCase;
*/
class PassthroughFormatterTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @covers ::format
* @uses \phpDocumentor\Reflection\DocBlock\Description
+7
View File
@@ -24,6 +24,13 @@ use PHPUnit\Framework\TestCase;
*/
class GenericTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Generic::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Description
+8
View File
@@ -24,6 +24,14 @@ use PHPUnit\Framework\TestCase;
*/
class LinkTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Link::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Description
+8
View File
@@ -33,6 +33,14 @@ use PHPUnit\Framework\TestCase;
*/
class MethodTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Method::__construct
* @covers \phpDocumentor\Reflection\DocBlock\Tags\BaseTag::getName
+8
View File
@@ -26,6 +26,14 @@ use PHPUnit\Framework\TestCase;
*/
class ParamTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Param::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Description
@@ -26,6 +26,14 @@ use PHPUnit\Framework\TestCase;
*/
class PropertyReadTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\PropertyRead::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Description
@@ -26,6 +26,14 @@ use PHPUnit\Framework\TestCase;
*/
class PropertyTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Property::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Description
@@ -26,6 +26,14 @@ use PHPUnit\Framework\TestCase;
*/
class PropertyWriteTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\PropertyWrite::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Description
+8
View File
@@ -26,6 +26,14 @@ use PHPUnit\Framework\TestCase;
*/
class ReturnTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Return_::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Description
+8
View File
@@ -28,6 +28,14 @@ use PHPUnit\Framework\TestCase;
*/
class SeeTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\See::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Description
+9
View File
@@ -24,6 +24,15 @@ use PHPUnit\Framework\TestCase;
*/
class SinceTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Since::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Description
+8 -1
View File
@@ -16,7 +16,6 @@ use Mockery as m;
use phpDocumentor\Reflection\DocBlock\Description;
use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
use phpDocumentor\Reflection\Types\Context;
use phpDocumentor\Reflection\Types\String_;
use PHPUnit\Framework\TestCase;
/**
@@ -25,6 +24,14 @@ use PHPUnit\Framework\TestCase;
*/
class SourceTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Source::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Description
+8
View File
@@ -26,6 +26,14 @@ use PHPUnit\Framework\TestCase;
*/
class ThrowsTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Throws::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Description
+8
View File
@@ -26,6 +26,14 @@ use PHPUnit\Framework\TestCase;
*/
class UsesTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Uses::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Description
+8
View File
@@ -26,6 +26,14 @@ use PHPUnit\Framework\TestCase;
*/
class VarTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Var_::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Description
+8
View File
@@ -24,6 +24,14 @@ use PHPUnit\Framework\TestCase;
*/
class VersionTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Version::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Description
+8
View File
@@ -29,6 +29,14 @@ use PHPUnit\Framework\TestCase;
*/
class DocBlockFactoryTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @covers ::__construct
* @covers ::createInstance
+8
View File
@@ -24,6 +24,14 @@ use PHPUnit\Framework\TestCase;
*/
class DocBlockTest extends TestCase
{
/**
* Call Mockery::close after each test.
*/
public function tearDown()
{
m::close();
}
/**
* @covers ::__construct
* @covers ::getSummary