mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
Fix typos
This commit is contained in:
@@ -169,7 +169,7 @@ DESCRIPTION
|
||||
|
||||
public function testMultilineTags(): void
|
||||
{
|
||||
$docCommment = <<<DOC
|
||||
$docComment = <<<DOC
|
||||
/**
|
||||
* This is an example of a summary.
|
||||
*
|
||||
@@ -180,7 +180,7 @@ DESCRIPTION
|
||||
*/
|
||||
DOC;
|
||||
$factory = DocBlockFactory::createInstance();
|
||||
$docblock = $factory->create($docCommment);
|
||||
$docblock = $factory->create($docComment);
|
||||
|
||||
self::assertEquals(
|
||||
[
|
||||
@@ -201,7 +201,7 @@ DOC;
|
||||
|
||||
public function testMethodRegression(): void
|
||||
{
|
||||
$docCommment = <<<DOC
|
||||
$docComment = <<<DOC
|
||||
/**
|
||||
* This is an example of a summary.
|
||||
*
|
||||
@@ -209,7 +209,7 @@ DOC;
|
||||
*/
|
||||
DOC;
|
||||
$factory = DocBlockFactory::createInstance();
|
||||
$docblock = $factory->create($docCommment);
|
||||
$docblock = $factory->create($docComment);
|
||||
|
||||
self::assertEquals(
|
||||
[
|
||||
@@ -231,7 +231,7 @@ DOC;
|
||||
|
||||
public function testInvalidTypeParamResultsInInvalidTag(): void
|
||||
{
|
||||
$docCommment = '
|
||||
$docComment = '
|
||||
/**
|
||||
* This is an example of a summary.
|
||||
*
|
||||
@@ -239,7 +239,7 @@ DOC;
|
||||
*/
|
||||
';
|
||||
$factory = DocBlockFactory::createInstance();
|
||||
$docblock = $factory->create($docCommment);
|
||||
$docblock = $factory->create($docComment);
|
||||
|
||||
self::assertEquals(
|
||||
[
|
||||
@@ -257,14 +257,14 @@ DOC;
|
||||
|
||||
public function testConstantReferenceTypes(): void
|
||||
{
|
||||
$docCommment = <<<DOC
|
||||
$docComment = <<<DOC
|
||||
/**
|
||||
* @return self::STATUS_*
|
||||
*/
|
||||
DOC;
|
||||
|
||||
$factory = DocBlockFactory::createInstance();
|
||||
$docblock = $factory->create($docCommment);
|
||||
$docblock = $factory->create($docComment);
|
||||
|
||||
self::assertEquals(
|
||||
[
|
||||
@@ -276,7 +276,7 @@ DOC;
|
||||
|
||||
public function testRegressionWordpressDocblocks(): void
|
||||
{
|
||||
$docCommment = <<<DOC
|
||||
$docComment = <<<DOC
|
||||
/**
|
||||
* Install a package.
|
||||
*
|
||||
@@ -311,7 +311,7 @@ DOC;
|
||||
DOC;
|
||||
|
||||
$factory = DocBlockFactory::createInstance();
|
||||
$docblock = $factory->create($docCommment);
|
||||
$docblock = $factory->create($docComment);
|
||||
|
||||
self::assertEquals(
|
||||
new DocBlock(
|
||||
|
||||
@@ -505,7 +505,7 @@ class StandardTagFactoryTest extends TestCase
|
||||
'tag',
|
||||
'@tag some text',
|
||||
],
|
||||
'tag body starting with sqare brackets is allowed' => [
|
||||
'tag body starting with square brackets is allowed' => [
|
||||
'@tag [is valid]',
|
||||
'tag',
|
||||
'@tag [is valid]',
|
||||
|
||||
@@ -139,7 +139,7 @@ class AuthorTest extends TestCase
|
||||
* @covers ::__construct
|
||||
* @covers ::__toString
|
||||
*/
|
||||
public function testStringRepresentationWithEmtpyEmail(): void
|
||||
public function testStringRepresentationWithEmptyEmail(): void
|
||||
{
|
||||
$fixture = new Author('Mike van Riel', '');
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ class ExampleTest extends TestCase
|
||||
* @covers ::getStartingLine
|
||||
* @covers ::getDescription
|
||||
*/
|
||||
public function testAllowOmitingLineCount(): void
|
||||
public function testAllowOmittingLineCount(): void
|
||||
{
|
||||
$tag = Example::create('"example1.php" 10 some text');
|
||||
$this->assertEquals('example1.php', $tag->getFilePath());
|
||||
|
||||
@@ -56,7 +56,7 @@ class VarTest extends TestCase
|
||||
*
|
||||
* @covers \phpDocumentor\Reflection\DocBlock\Tags\BaseTag::render
|
||||
*/
|
||||
public function testIfVariableNameIsOmmitedIfEmpty(): void
|
||||
public function testIfVariableNameIsOmittedIfEmpty(): void
|
||||
{
|
||||
$fixture = new Var_('', null, null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user