Skip to content

Commit

Permalink
Removed interface that's superfluous.
Browse files Browse the repository at this point in the history
  • Loading branch information
danbettles committed Sep 28, 2022
1 parent c1b7079 commit d04d614
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
10 changes: 0 additions & 10 deletions src/OutputHelper/OutputHelperInterface.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/OutputHelper/XmlOutputHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* Will automatically escape attribute values but won't touch anything else.
*/
class XmlOutputHelper implements OutputHelperInterface
class XmlOutputHelper
{
private ?string $encoding = null;

Expand Down
6 changes: 0 additions & 6 deletions tests/src/OutputHelper/XmlOutputHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace DanBettles\Marigold\Tests\OutputHelper;

use DanBettles\Marigold\AbstractTestCase;
use DanBettles\Marigold\OutputHelper\OutputHelperInterface;
use DanBettles\Marigold\OutputHelper\XmlOutputHelper;
use InvalidArgumentException;
use PHPUnit\Framework\MockObject\MockObject;
Expand All @@ -17,11 +16,6 @@
// @todo Test that `createEl()`/`createElement()` calls `createAttributes()`.
class XmlOutputHelperTest extends AbstractTestCase
{
public function testIsAnOutputhelper(): void
{
$this->assertTrue($this->getTestedClass()->implementsInterface(OutputHelperInterface::class));
}

public function testGetencodingReturnsTheEncodingSetUsingSetencoding(): void
{
$helper = new XmlOutputHelper();
Expand Down

0 comments on commit d04d614

Please sign in to comment.