Skip to content

Commit

Permalink
Kill last mutant (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik authored Nov 6, 2022
1 parent 84e0e80 commit 464ca55
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Tag/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,6 @@ public function size(?int $size): self
return $new;
}

/**
* @param bool|float|int|string|Stringable|null $value
*/
public function unselectValue(bool|float|int|string|Stringable|null $value): self
{
$new = clone $this;
Expand Down
5 changes: 5 additions & 0 deletions tests/common/Objects/TestTagContentTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ final class TestTagContentTrait extends NormalTag
{
use TagContentTrait;

public function getContentArray(): array
{
return $this->content;
}

protected function getName(): string
{
return 'test';
Expand Down
7 changes: 7 additions & 0 deletions tests/common/Tag/Base/TagContentTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ public function testNamedParametersContent(): void
);
}

public function testContentArray(): void
{
$tag = TestTagContentTrait::tag()->content(a: '1', b: '2');

$this->assertSame(['1', '2'], $tag->getContentArray());
}

public function testImmutability(): void
{
$tag = TestTagContentTrait::tag();
Expand Down

0 comments on commit 464ca55

Please sign in to comment.