Fixed build fail due to replaced class name

This commit is contained in:
Mike van Riel
2015-06-21 08:56:53 +02:00
committed by Mike van Riel
parent db3f56cfff
commit 75bb275a99
5 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -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() : '');
} }
/** /**
+2 -2
View File
@@ -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
*/ */
+4 -4
View File
@@ -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()
{ {
+3 -3
View File
@@ -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());
} }