mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
Make split platform independend
This commit is contained in:
@@ -63,7 +63,7 @@ DOCCOMMENT;
|
||||
]
|
||||
);
|
||||
|
||||
$this->assertSame($expected, $fixture->getDocComment($docBlock));
|
||||
$this->assertSameString($expected, $fixture->getDocComment($docBlock));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -98,7 +98,7 @@ DOCCOMMENT;
|
||||
]
|
||||
);
|
||||
|
||||
$this->assertSame($expected, $fixture->getDocComment($docBlock));
|
||||
$this->assertSameString($expected, $fixture->getDocComment($docBlock));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -133,7 +133,7 @@ DOCCOMMENT;
|
||||
]
|
||||
);
|
||||
|
||||
$this->assertSame($expected, $fixture->getDocComment($docBlock));
|
||||
$this->assertSameString($expected, $fixture->getDocComment($docBlock));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -174,7 +174,7 @@ DOCCOMMENT;
|
||||
]
|
||||
);
|
||||
|
||||
$this->assertSame($expected, $fixture->getDocComment($docBlock));
|
||||
$this->assertSameString($expected, $fixture->getDocComment($docBlock));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -198,9 +198,16 @@ DOCCOMMENT_AFTER_REMOVE;
|
||||
$genericTag = new DocBlock\Tags\Generic('unknown-tag');
|
||||
|
||||
$docBlock = new DocBlock('', null, [$genericTag]);
|
||||
$this->assertSame($expected, $fixture->getDocComment($docBlock));
|
||||
$this->assertSameString($expected, $fixture->getDocComment($docBlock));
|
||||
|
||||
$docBlock->removeTag($genericTag);
|
||||
$this->assertSame($expectedAfterRemove, $fixture->getDocComment($docBlock));
|
||||
$this->assertSameString($expectedAfterRemove, $fixture->getDocComment($docBlock));
|
||||
}
|
||||
|
||||
public function assertSameString(string $expected, string $actual): void
|
||||
{
|
||||
$expected = str_replace(PHP_EOL, "\n", $expected);
|
||||
|
||||
self::assertSame($expected, $actual);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user