Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions config/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,3 @@ parameters:
count: 2
path: ../src/RuleSet/DeclarationBlock.php

-
message: '#^@covers value \\Sabberworm\\CSS\\Value\\Value\:\:parseValue\(\) references an invalid method\.$#'
identifier: phpunit.coversMethod
count: 2
path: ../tests/ParserTest.php

23 changes: 10 additions & 13 deletions tests/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,17 @@
use Sabberworm\CSS\Value\URL;

/**
* @covers \Sabberworm\CSS\CSSList\Document
* @covers \Sabberworm\CSS\Parser
* @covers \Sabberworm\CSS\CSSList\Document::parse
* @covers \Sabberworm\CSS\Rule\Rule::parse
* @covers \Sabberworm\CSS\RuleSet\DeclarationBlock::parse
* @covers \Sabberworm\CSS\Value\CalcFunction::parse
* @covers \Sabberworm\CSS\Value\Color::parse
* @covers \Sabberworm\CSS\Value\CSSString::parse
* @covers \Sabberworm\CSS\Value\LineName::parse
* @covers \Sabberworm\CSS\Value\Size::parse
* @covers \Sabberworm\CSS\Value\URL::parse
* @covers \Sabberworm\CSS\RuleSet\DeclarationBlock
* @covers \Sabberworm\CSS\Rule\Rule
* @covers \Sabberworm\CSS\Value\CSSString
* @covers \Sabberworm\CSS\Value\CalcFunction
* @covers \Sabberworm\CSS\Value\Color
* @covers \Sabberworm\CSS\Value\LineName
* @covers \Sabberworm\CSS\Value\Size
* @covers \Sabberworm\CSS\Value\URL
* @covers \Sabberworm\CSS\Value\Value
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was it intentional to add that it covers Value\Value?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, as missingPropertyValueStrict and missingPropertyValueLenient had been marked as covering \Sabberworm\CSS\Value\Value::parseValue().

*/
final class ParserTest extends TestCase
{
Expand Down Expand Up @@ -971,8 +972,6 @@ public function unopenedClosingBracketFailure(): void
/**
* Ensure that a missing property value raises an exception.
*
* @covers \Sabberworm\CSS\Value\Value::parseValue()
*
* @test
*/
public function missingPropertyValueStrict(): void
Expand All @@ -985,8 +984,6 @@ public function missingPropertyValueStrict(): void
/**
* Ensure that a missing property value is ignored when in lenient parsing mode.
*
* @covers \Sabberworm\CSS\Value\Value::parseValue()
*
* @test
*/
public function missingPropertyValueLenient(): void
Expand Down
18 changes: 9 additions & 9 deletions tests/RuleSet/LenientParsingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
use Sabberworm\CSS\Settings;

/**
* @covers \Sabberworm\CSS\CSSList\Document
* @covers \Sabberworm\CSS\Parser
* @covers \Sabberworm\CSS\CSSList\Document::parse
* @covers \Sabberworm\CSS\Rule\Rule::parse
* @covers \Sabberworm\CSS\RuleSet\DeclarationBlock::parse
* @covers \Sabberworm\CSS\Value\CalcFunction::parse
* @covers \Sabberworm\CSS\Value\Color::parse
* @covers \Sabberworm\CSS\Value\CSSString::parse
* @covers \Sabberworm\CSS\Value\LineName::parse
* @covers \Sabberworm\CSS\Value\Size::parse
* @covers \Sabberworm\CSS\Value\URL::parse
* @covers \Sabberworm\CSS\RuleSet\DeclarationBlock
* @covers \Sabberworm\CSS\Rule\Rule
* @covers \Sabberworm\CSS\Value\CSSString
* @covers \Sabberworm\CSS\Value\CalcFunction
* @covers \Sabberworm\CSS\Value\Color
* @covers \Sabberworm\CSS\Value\LineName
* @covers \Sabberworm\CSS\Value\Size
* @covers \Sabberworm\CSS\Value\URL
*/
final class LenientParsingTest extends TestCase
{
Expand Down