mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
Fixed build fail due to replaced class name
This commit is contained in:
committed by
Mike van Riel
parent
db3f56cfff
commit
75bb275a99
@@ -68,7 +68,7 @@ class Generic extends BaseTag
|
|||||||
*/
|
*/
|
||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
return $this->getName() . ($this->description ? ' ' . $this->description->render() : '');
|
return '@' . $this->getName() . ($this->description ? ' ' . $this->description->render() : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class DescriptionTest extends \PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers ::__construct
|
* @covers ::__construct
|
||||||
* @covers ::render
|
* @covers ::render
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Other
|
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Generic
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\Tags\BaseTag
|
* @uses \phpDocumentor\Reflection\DocBlock\Tags\BaseTag
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter
|
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter
|
||||||
*/
|
*/
|
||||||
@@ -49,7 +49,7 @@ class DescriptionTest extends \PHPUnit_Framework_TestCase
|
|||||||
* @covers ::__construct
|
* @covers ::__construct
|
||||||
* @covers ::render
|
* @covers ::render
|
||||||
* @covers ::__toString
|
* @covers ::__toString
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Other
|
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Generic
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\Tags\BaseTag
|
* @uses \phpDocumentor\Reflection\DocBlock\Tags\BaseTag
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter
|
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class SerializerTest extends \PHPUnit_Framework_TestCase
|
|||||||
* @uses phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter
|
* @uses phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter
|
||||||
* @uses phpDocumentor\Reflection\DocBlock
|
* @uses phpDocumentor\Reflection\DocBlock
|
||||||
* @uses phpDocumentor\Reflection\DocBlock\Tags\BaseTag
|
* @uses phpDocumentor\Reflection\DocBlock\Tags\BaseTag
|
||||||
* @uses phpDocumentor\Reflection\DocBlock\Tags\Other
|
* @uses phpDocumentor\Reflection\DocBlock\Tags\Generic
|
||||||
*/
|
*/
|
||||||
public function testReconstructsADocCommentFromADocBlock()
|
public function testReconstructsADocCommentFromADocBlock()
|
||||||
{
|
{
|
||||||
@@ -62,7 +62,7 @@ DOCCOMMENT;
|
|||||||
* @uses phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter
|
* @uses phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter
|
||||||
* @uses phpDocumentor\Reflection\DocBlock
|
* @uses phpDocumentor\Reflection\DocBlock
|
||||||
* @uses phpDocumentor\Reflection\DocBlock\Tags\BaseTag
|
* @uses phpDocumentor\Reflection\DocBlock\Tags\BaseTag
|
||||||
* @uses phpDocumentor\Reflection\DocBlock\Tags\Other
|
* @uses phpDocumentor\Reflection\DocBlock\Tags\Generic
|
||||||
*/
|
*/
|
||||||
public function testAddPrefixToDocBlock()
|
public function testAddPrefixToDocBlock()
|
||||||
{
|
{
|
||||||
@@ -96,7 +96,7 @@ DOCCOMMENT;
|
|||||||
* @uses phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter
|
* @uses phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter
|
||||||
* @uses phpDocumentor\Reflection\DocBlock
|
* @uses phpDocumentor\Reflection\DocBlock
|
||||||
* @uses phpDocumentor\Reflection\DocBlock\Tags\BaseTag
|
* @uses phpDocumentor\Reflection\DocBlock\Tags\BaseTag
|
||||||
* @uses phpDocumentor\Reflection\DocBlock\Tags\Other
|
* @uses phpDocumentor\Reflection\DocBlock\Tags\Generic
|
||||||
*/
|
*/
|
||||||
public function testAddPrefixToDocBlockExceptFirstLine()
|
public function testAddPrefixToDocBlockExceptFirstLine()
|
||||||
{
|
{
|
||||||
@@ -130,7 +130,7 @@ DOCCOMMENT;
|
|||||||
* @uses phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter
|
* @uses phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter
|
||||||
* @uses phpDocumentor\Reflection\DocBlock
|
* @uses phpDocumentor\Reflection\DocBlock
|
||||||
* @uses phpDocumentor\Reflection\DocBlock\Tags\BaseTag
|
* @uses phpDocumentor\Reflection\DocBlock\Tags\BaseTag
|
||||||
* @uses phpDocumentor\Reflection\DocBlock\Tags\Other
|
* @uses phpDocumentor\Reflection\DocBlock\Tags\Generic
|
||||||
*/
|
*/
|
||||||
public function testWordwrapsAroundTheGivenAmountOfCharacters()
|
public function testWordwrapsAroundTheGivenAmountOfCharacters()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class PassthroughFormatterTest extends \PHPUnit_Framework_TestCase
|
|||||||
* @covers ::format
|
* @covers ::format
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\Description
|
* @uses \phpDocumentor\Reflection\DocBlock\Description
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\Tags\BaseTag
|
* @uses \phpDocumentor\Reflection\DocBlock\Tags\BaseTag
|
||||||
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Other
|
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Generic
|
||||||
*/
|
*/
|
||||||
public function testFormatterCallsToStringAndReturnsAStandardRepresentation()
|
public function testFormatterCallsToStringAndReturnsAStandardRepresentation()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class GenericTest extends \PHPUnit_Framework_TestCase
|
|||||||
{
|
{
|
||||||
$fixture = new Generic('generic', new Description('Description'));
|
$fixture = new Generic('generic', new Description('Description'));
|
||||||
|
|
||||||
$this->assertSame('generic Description', $fixture->render());
|
$this->assertSame('@generic Description', $fixture->render());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -89,7 +89,7 @@ class GenericTest extends \PHPUnit_Framework_TestCase
|
|||||||
{
|
{
|
||||||
$fixture = new Generic('generic', new Description('Description'));
|
$fixture = new Generic('generic', new Description('Description'));
|
||||||
|
|
||||||
$this->assertSame('generic Description', (string)$fixture);
|
$this->assertSame('@generic Description', (string)$fixture);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -111,7 +111,7 @@ class GenericTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$fixture = Generic::create('My Description', 'generic', $descriptionFactory, $context);
|
$fixture = Generic::create('My Description', 'generic', $descriptionFactory, $context);
|
||||||
|
|
||||||
$this->assertSame('generic My Description', (string)$fixture);
|
$this->assertSame('@generic My Description', (string)$fixture);
|
||||||
$this->assertSame($generics, $fixture->getName());
|
$this->assertSame($generics, $fixture->getName());
|
||||||
$this->assertSame($description, $fixture->getDescription());
|
$this->assertSame($description, $fixture->getDescription());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user