Skip to content

Commit

Permalink
Remove __toString from renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiandedeyne committed Jan 31, 2018
1 parent 2542004 commit 1f5187d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
5 changes: 0 additions & 5 deletions src/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,6 @@ public function render(): string
return $result;
}

public function __toString() : string
{
return $this->render();
}

protected function environmentScript(): string
{
$context = empty($this->context) ? '{}' : json_encode($this->context);
Expand Down
11 changes: 0 additions & 11 deletions tests/Renderer/RendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,4 @@ public function it_can_register_an_entry_resolver()
$result
);
}

/** @test */
public function it_implements_to_string()
{
$result = (string) $this->renderer->entry(__DIR__.'/../scripts/app-server.js');

$this->assertEquals(
'<p>Hello, world!</p>',
$result
);
}
}

0 comments on commit 1f5187d

Please sign in to comment.