mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
fix cs
This commit is contained in:
committed by
Jaap van Otterdijk
parent
e9e35284d9
commit
f8d4fda4f3
@@ -20,7 +20,7 @@ interface Tag
|
|||||||
public function getName(): string;
|
public function getName(): string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Tag Class that implements Tag
|
* @return Tag|mixed Class that implements Tag
|
||||||
*/
|
*/
|
||||||
public static function create(string $body);
|
public static function create(string $body);
|
||||||
|
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ class StandardTagFactoryTest extends TestCase
|
|||||||
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct
|
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct
|
||||||
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService
|
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService
|
||||||
*/
|
*/
|
||||||
public function testExceptionIsThrownIfProvidedTagIsNotWellformed() : void
|
public function testExceptionIsThrownIfProvidedTagIsNotWellformed(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$this->expectExceptionMessage('The tag "@user[myuser" does not seem to be wellformed, please check it for errors');
|
$this->expectExceptionMessage('The tag "@user[myuser" does not seem to be wellformed, please check it for errors');
|
||||||
@@ -236,7 +236,7 @@ class StandardTagFactoryTest extends TestCase
|
|||||||
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct
|
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct
|
||||||
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService
|
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService
|
||||||
*/
|
*/
|
||||||
public function testHandlerRegistrationFailsIfProvidedTagNameIsNamespaceButNotFullyQualified() : void
|
public function testHandlerRegistrationFailsIfProvidedTagNameIsNamespaceButNotFullyQualified(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$resolver = m::mock(FqsenResolver::class);
|
$resolver = m::mock(FqsenResolver::class);
|
||||||
@@ -249,7 +249,7 @@ class StandardTagFactoryTest extends TestCase
|
|||||||
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct
|
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct
|
||||||
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService
|
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService
|
||||||
*/
|
*/
|
||||||
public function testHandlerRegistrationFailsIfProvidedHandlerIsEmpty() : void
|
public function testHandlerRegistrationFailsIfProvidedHandlerIsEmpty(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$resolver = m::mock(FqsenResolver::class);
|
$resolver = m::mock(FqsenResolver::class);
|
||||||
@@ -262,7 +262,7 @@ class StandardTagFactoryTest extends TestCase
|
|||||||
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct
|
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct
|
||||||
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService
|
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService
|
||||||
*/
|
*/
|
||||||
public function testHandlerRegistrationFailsIfProvidedHandlerIsNotAnExistingClassName() : void
|
public function testHandlerRegistrationFailsIfProvidedHandlerIsNotAnExistingClassName(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$resolver = m::mock(FqsenResolver::class);
|
$resolver = m::mock(FqsenResolver::class);
|
||||||
@@ -275,7 +275,7 @@ class StandardTagFactoryTest extends TestCase
|
|||||||
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct
|
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct
|
||||||
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService
|
* @uses phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService
|
||||||
*/
|
*/
|
||||||
public function testHandlerRegistrationFailsIfProvidedHandlerDoesNotImplementTheTagInterface() : void
|
public function testHandlerRegistrationFailsIfProvidedHandlerDoesNotImplementTheTagInterface(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$resolver = m::mock(FqsenResolver::class);
|
$resolver = m::mock(FqsenResolver::class);
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ class AuthorTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::__construct
|
* @covers ::__construct
|
||||||
*/
|
*/
|
||||||
public function testInitializationFailsIfEmailIsNotValid() : void
|
public function testInitializationFailsIfEmailIsNotValid(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
new Author('Mike van Riel', 'mike');
|
new Author('Mike van Riel', 'mike');
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ class CoversTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfBodyIsNotEmpty() : void
|
public function testFactoryMethodFailsIfBodyIsNotEmpty(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$this->assertNull(Covers::create(''));
|
$this->assertNull(Covers::create(''));
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ class DeprecatedTest extends TestCase
|
|||||||
* @covers ::__construct
|
* @covers ::__construct
|
||||||
* @covers ::getVersion
|
* @covers ::getVersion
|
||||||
*/
|
*/
|
||||||
public function testHasVersionNumber()
|
public function testHasVersionNumber(): void
|
||||||
{
|
{
|
||||||
$expected = '1.0';
|
$expected = '1.0';
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ class DeprecatedTest extends TestCase
|
|||||||
* @covers \phpDocumentor\Reflection\DocBlock\Tags\BaseTag::getDescription
|
* @covers \phpDocumentor\Reflection\DocBlock\Tags\BaseTag::getDescription
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\Description
|
* @uses \phpDocumentor\Reflection\DocBlock\Description
|
||||||
*/
|
*/
|
||||||
public function testHasDescription()
|
public function testHasDescription(): void
|
||||||
{
|
{
|
||||||
$expected = new Description('Description');
|
$expected = new Description('Description');
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@ class DeprecatedTest extends TestCase
|
|||||||
* @covers ::__toString
|
* @covers ::__toString
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\Description
|
* @uses \phpDocumentor\Reflection\DocBlock\Description
|
||||||
*/
|
*/
|
||||||
public function testStringRepresentationIsReturned()
|
public function testStringRepresentationIsReturned(): void
|
||||||
{
|
{
|
||||||
$fixture = new Deprecated('1.0', new Description('Description'));
|
$fixture = new Deprecated('1.0', new Description('Description'));
|
||||||
|
|
||||||
@@ -121,7 +121,7 @@ class DeprecatedTest extends TestCase
|
|||||||
* @uses \phpDocumentor\Reflection\DocBlock\Description
|
* @uses \phpDocumentor\Reflection\DocBlock\Description
|
||||||
* @uses \phpDocumentor\Reflection\Types\Context
|
* @uses \phpDocumentor\Reflection\Types\Context
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethod()
|
public function testFactoryMethod(): void
|
||||||
{
|
{
|
||||||
$descriptionFactory = m::mock(DescriptionFactory::class);
|
$descriptionFactory = m::mock(DescriptionFactory::class);
|
||||||
$context = new Context('');
|
$context = new Context('');
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ class GenericTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfNameIsNotEmpty() : void
|
public function testFactoryMethodFailsIfNameIsNotEmpty(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Generic::create('', '');
|
Generic::create('', '');
|
||||||
@@ -138,7 +138,7 @@ class GenericTest extends TestCase
|
|||||||
* @covers ::create
|
* @covers ::create
|
||||||
* @covers ::__construct
|
* @covers ::__construct
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfNameContainsIllegalCharacters() : void
|
public function testFactoryMethodFailsIfNameContainsIllegalCharacters(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Generic::create('', 'name/myname');
|
Generic::create('', 'name/myname');
|
||||||
|
|||||||
@@ -367,7 +367,7 @@ class MethodTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfBodyIsEmpty() : void
|
public function testFactoryMethodFailsIfBodyIsEmpty(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Method::create('');
|
Method::create('');
|
||||||
@@ -376,7 +376,7 @@ class MethodTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodReturnsNullIfBodyIsIncorrect() : void
|
public function testFactoryMethodReturnsNullIfBodyIsIncorrect(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$this->assertNull(Method::create('body('));
|
$this->assertNull(Method::create('body('));
|
||||||
@@ -385,7 +385,7 @@ class MethodTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfResolverIsNull() : void
|
public function testFactoryMethodFailsIfResolverIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Method::create('body');
|
Method::create('body');
|
||||||
@@ -394,7 +394,7 @@ class MethodTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfDescriptionFactoryIsNull() : void
|
public function testFactoryMethodFailsIfDescriptionFactoryIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Method::create('body', new TypeResolver());
|
Method::create('body', new TypeResolver());
|
||||||
@@ -403,7 +403,7 @@ class MethodTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::__construct
|
* @covers ::__construct
|
||||||
*/
|
*/
|
||||||
public function testCreationFailsIfBodyIsNotString() : void
|
public function testCreationFailsIfBodyIsNotString(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
new Method([]);
|
new Method([]);
|
||||||
@@ -412,7 +412,7 @@ class MethodTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::__construct
|
* @covers ::__construct
|
||||||
*/
|
*/
|
||||||
public function testCreationFailsIfBodyIsEmpty() : void
|
public function testCreationFailsIfBodyIsEmpty(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
new Method('');
|
new Method('');
|
||||||
@@ -421,7 +421,7 @@ class MethodTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::__construct
|
* @covers ::__construct
|
||||||
*/
|
*/
|
||||||
public function testCreationFailsIfStaticIsNotBoolean() : void
|
public function testCreationFailsIfStaticIsNotBoolean(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
new Method('body', [], null, []);
|
new Method('body', [], null, []);
|
||||||
@@ -430,7 +430,7 @@ class MethodTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::__construct
|
* @covers ::__construct
|
||||||
*/
|
*/
|
||||||
public function testCreationFailsIfArgumentRecordContainsInvalidEntry() : void
|
public function testCreationFailsIfArgumentRecordContainsInvalidEntry(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
new Method('body', [ [ 'name' => 'myName', 'unknown' => 'nah' ] ]);
|
new Method('body', [ [ 'name' => 'myName', 'unknown' => 'nah' ] ]);
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ class ParamTest extends TestCase
|
|||||||
* @uses \phpDocumentor\Reflection\TypeResolver
|
* @uses \phpDocumentor\Reflection\TypeResolver
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\DescriptionFactory
|
* @uses \phpDocumentor\Reflection\DocBlock\DescriptionFactory
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfEmptyBodyIsGiven() : void
|
public function testFactoryMethodFailsIfEmptyBodyIsGiven(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$descriptionFactory = m::mock(DescriptionFactory::class);
|
$descriptionFactory = m::mock(DescriptionFactory::class);
|
||||||
@@ -193,7 +193,7 @@ class ParamTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfResolverIsNull() : void
|
public function testFactoryMethodFailsIfResolverIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Param::create('body');
|
Param::create('body');
|
||||||
@@ -203,7 +203,7 @@ class ParamTest extends TestCase
|
|||||||
* @covers ::create
|
* @covers ::create
|
||||||
* @uses \phpDocumentor\Reflection\TypeResolver
|
* @uses \phpDocumentor\Reflection\TypeResolver
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfDescriptionFactoryIsNull() : void
|
public function testFactoryMethodFailsIfDescriptionFactoryIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Param::create('body', new TypeResolver());
|
Param::create('body', new TypeResolver());
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ class PropertyReadTest extends TestCase
|
|||||||
* @uses \phpDocumentor\Reflection\TypeResolver
|
* @uses \phpDocumentor\Reflection\TypeResolver
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\DescriptionFactory
|
* @uses \phpDocumentor\Reflection\DocBlock\DescriptionFactory
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfEmptyBodyIsGiven() : void
|
public function testFactoryMethodFailsIfEmptyBodyIsGiven(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$descriptionFactory = m::mock(DescriptionFactory::class);
|
$descriptionFactory = m::mock(DescriptionFactory::class);
|
||||||
@@ -179,7 +179,7 @@ class PropertyReadTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfResolverIsNull() : void
|
public function testFactoryMethodFailsIfResolverIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
PropertyRead::create('body');
|
PropertyRead::create('body');
|
||||||
@@ -189,7 +189,7 @@ class PropertyReadTest extends TestCase
|
|||||||
* @covers ::create
|
* @covers ::create
|
||||||
* @uses \phpDocumentor\Reflection\TypeResolver
|
* @uses \phpDocumentor\Reflection\TypeResolver
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfDescriptionFactoryIsNull() : void
|
public function testFactoryMethodFailsIfDescriptionFactoryIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
PropertyRead::create('body', new TypeResolver());
|
PropertyRead::create('body', new TypeResolver());
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ class PropertyTest extends TestCase
|
|||||||
* @uses \phpDocumentor\Reflection\TypeResolver
|
* @uses \phpDocumentor\Reflection\TypeResolver
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\DescriptionFactory
|
* @uses \phpDocumentor\Reflection\DocBlock\DescriptionFactory
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfEmptyBodyIsGiven() : void
|
public function testFactoryMethodFailsIfEmptyBodyIsGiven(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$descriptionFactory = m::mock(DescriptionFactory::class);
|
$descriptionFactory = m::mock(DescriptionFactory::class);
|
||||||
@@ -174,7 +174,7 @@ class PropertyTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfResolverIsNull() : void
|
public function testFactoryMethodFailsIfResolverIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Property::create('body');
|
Property::create('body');
|
||||||
@@ -184,7 +184,7 @@ class PropertyTest extends TestCase
|
|||||||
* @covers ::create
|
* @covers ::create
|
||||||
* @uses \phpDocumentor\Reflection\TypeResolver
|
* @uses \phpDocumentor\Reflection\TypeResolver
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfDescriptionFactoryIsNull() : void
|
public function testFactoryMethodFailsIfDescriptionFactoryIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Property::create('body', new TypeResolver());
|
Property::create('body', new TypeResolver());
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ class PropertyWriteTest extends TestCase
|
|||||||
* @uses \phpDocumentor\Reflection\TypeResolver
|
* @uses \phpDocumentor\Reflection\TypeResolver
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\DescriptionFactory
|
* @uses \phpDocumentor\Reflection\DocBlock\DescriptionFactory
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfEmptyBodyIsGiven() : void
|
public function testFactoryMethodFailsIfEmptyBodyIsGiven(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$descriptionFactory = m::mock(DescriptionFactory::class);
|
$descriptionFactory = m::mock(DescriptionFactory::class);
|
||||||
@@ -179,7 +179,7 @@ class PropertyWriteTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfResolverIsNull() : void
|
public function testFactoryMethodFailsIfResolverIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
PropertyWrite::create('body');
|
PropertyWrite::create('body');
|
||||||
@@ -189,7 +189,7 @@ class PropertyWriteTest extends TestCase
|
|||||||
* @covers ::create
|
* @covers ::create
|
||||||
* @uses \phpDocumentor\Reflection\TypeResolver
|
* @uses \phpDocumentor\Reflection\TypeResolver
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfDescriptionFactoryIsNull() : void
|
public function testFactoryMethodFailsIfDescriptionFactoryIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
PropertyWrite::create('body', new TypeResolver());
|
PropertyWrite::create('body', new TypeResolver());
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ class ReturnTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfBodyIsNotEmpty() : void
|
public function testFactoryMethodFailsIfBodyIsNotEmpty(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$this->assertNull(Return_::create(''));
|
$this->assertNull(Return_::create(''));
|
||||||
@@ -154,7 +154,7 @@ class ReturnTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfResolverIsNull() : void
|
public function testFactoryMethodFailsIfResolverIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Return_::create('body');
|
Return_::create('body');
|
||||||
@@ -163,7 +163,7 @@ class ReturnTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfDescriptionFactoryIsNull() : void
|
public function testFactoryMethodFailsIfDescriptionFactoryIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Return_::create('body', new TypeResolver());
|
Return_::create('body', new TypeResolver());
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ class SeeTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfBodyIsNotEmpty() : void
|
public function testFactoryMethodFailsIfBodyIsNotEmpty(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$this->assertNull(See::create(''));
|
$this->assertNull(See::create(''));
|
||||||
@@ -202,7 +202,7 @@ class SeeTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfResolverIsNull() : void
|
public function testFactoryMethodFailsIfResolverIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
See::create('body');
|
See::create('body');
|
||||||
@@ -211,7 +211,7 @@ class SeeTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfDescriptionFactoryIsNull() : void
|
public function testFactoryMethodFailsIfDescriptionFactoryIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
See::create('body', new FqsenResolver());
|
See::create('body', new FqsenResolver());
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ class SourceTest extends TestCase
|
|||||||
* @uses \phpDocumentor\Reflection\TypeResolver
|
* @uses \phpDocumentor\Reflection\TypeResolver
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\DescriptionFactory
|
* @uses \phpDocumentor\Reflection\DocBlock\DescriptionFactory
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfEmptyBodyIsGiven() : void
|
public function testFactoryMethodFailsIfEmptyBodyIsGiven(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$descriptionFactory = m::mock(DescriptionFactory::class);
|
$descriptionFactory = m::mock(DescriptionFactory::class);
|
||||||
@@ -172,7 +172,7 @@ class SourceTest extends TestCase
|
|||||||
* @covers ::create
|
* @covers ::create
|
||||||
* @uses \phpDocumentor\Reflection\TypeResolver
|
* @uses \phpDocumentor\Reflection\TypeResolver
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfDescriptionFactoryIsNull() : void
|
public function testFactoryMethodFailsIfDescriptionFactoryIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Source::create('1');
|
Source::create('1');
|
||||||
@@ -181,7 +181,7 @@ class SourceTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::__construct
|
* @covers ::__construct
|
||||||
*/
|
*/
|
||||||
public function testExceptionIsThrownIfStartingLineIsNotInteger() : void
|
public function testExceptionIsThrownIfStartingLineIsNotInteger(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
new Source('blabla');
|
new Source('blabla');
|
||||||
@@ -190,7 +190,7 @@ class SourceTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::__construct
|
* @covers ::__construct
|
||||||
*/
|
*/
|
||||||
public function testExceptionIsThrownIfLineCountIsNotIntegerOrNull() : void
|
public function testExceptionIsThrownIfLineCountIsNotIntegerOrNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
new Source('1', []);
|
new Source('1', []);
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ class ThrowsTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfBodyIsNotEmpty() : void
|
public function testFactoryMethodFailsIfBodyIsNotEmpty(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$this->assertNull(Throws::create(''));
|
$this->assertNull(Throws::create(''));
|
||||||
@@ -154,7 +154,7 @@ class ThrowsTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfResolverIsNull() : void
|
public function testFactoryMethodFailsIfResolverIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Throws::create('body');
|
Throws::create('body');
|
||||||
@@ -163,7 +163,7 @@ class ThrowsTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfDescriptionFactoryIsNull() : void
|
public function testFactoryMethodFailsIfDescriptionFactoryIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Throws::create('body', new TypeResolver());
|
Throws::create('body', new TypeResolver());
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ class UsesTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfBodyIsNotEmpty() : void
|
public function testFactoryMethodFailsIfBodyIsNotEmpty(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$this->assertNull(Uses::create(''));
|
$this->assertNull(Uses::create(''));
|
||||||
@@ -157,7 +157,7 @@ class UsesTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfResolverIsNull() : void
|
public function testFactoryMethodFailsIfResolverIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Uses::create('body');
|
Uses::create('body');
|
||||||
@@ -166,7 +166,7 @@ class UsesTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfDescriptionFactoryIsNull() : void
|
public function testFactoryMethodFailsIfDescriptionFactoryIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Uses::create('body', new FqsenResolver());
|
Uses::create('body', new FqsenResolver());
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ class VarTest extends TestCase
|
|||||||
* @uses \phpDocumentor\Reflection\TypeResolver
|
* @uses \phpDocumentor\Reflection\TypeResolver
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\DescriptionFactory
|
* @uses \phpDocumentor\Reflection\DocBlock\DescriptionFactory
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfEmptyBodyIsGiven() : void
|
public function testFactoryMethodFailsIfEmptyBodyIsGiven(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$descriptionFactory = m::mock(DescriptionFactory::class);
|
$descriptionFactory = m::mock(DescriptionFactory::class);
|
||||||
@@ -185,7 +185,7 @@ class VarTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::create
|
* @covers ::create
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfResolverIsNull() : void
|
public function testFactoryMethodFailsIfResolverIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Var_::create('body');
|
Var_::create('body');
|
||||||
@@ -195,7 +195,7 @@ class VarTest extends TestCase
|
|||||||
* @covers ::create
|
* @covers ::create
|
||||||
* @uses \phpDocumentor\Reflection\TypeResolver
|
* @uses \phpDocumentor\Reflection\TypeResolver
|
||||||
*/
|
*/
|
||||||
public function testFactoryMethodFailsIfDescriptionFactoryIsNull() : void
|
public function testFactoryMethodFailsIfDescriptionFactoryIsNull(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
Var_::create('body', new TypeResolver());
|
Var_::create('body', new TypeResolver());
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ class DocBlockTest extends TestCase
|
|||||||
* @uses \phpDocumentor\Reflection\DocBlock\Description
|
* @uses \phpDocumentor\Reflection\DocBlock\Description
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\Tag
|
* @uses \phpDocumentor\Reflection\DocBlock\Tag
|
||||||
*/
|
*/
|
||||||
public function testDocBlockAllowsOnlyTags() : void
|
public function testDocBlockAllowsOnlyTags(): void
|
||||||
{
|
{
|
||||||
$this->expectException('InvalidArgumentException');
|
$this->expectException('InvalidArgumentException');
|
||||||
$tags = [
|
$tags = [
|
||||||
|
|||||||
Reference in New Issue
Block a user