Skip to content

Commit

Permalink
Changes based on phpcs issues
Browse files Browse the repository at this point in the history
  • Loading branch information
genius257 authored Jun 11, 2024
1 parent 1e0a4b0 commit 03edadc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/ViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public function testRender()
{
$view = $this->createView();
$this->assertEquals(
// phpcs:ignore Generic.Files.LineLength
"<!DOCTYPE html>\n<html>\n <head></head>\n <body>\n text <span>content</span>\n <br />\n <component></component>\n </body>\n</html>\n",
$view->render()
);
Expand Down Expand Up @@ -127,6 +128,7 @@ public function testRequireToVar()
$view = $this->createView();
$data = $view->requireToVar(__DIR__ . '/testData/view.php');
$this->assertEquals(
// phpcs:ignore Generic.Files.LineLength
"<!DOCTYPE html>\n<html>\n <head></head>\n <body>\n text <span>content</span>\n <br />\n <Tests\\testData\\Component data-extra=\"value\" />\n </body>\n</html>\n",
$data
);
Expand Down Expand Up @@ -158,7 +160,8 @@ public function render()
*/
public function testRenderComponent()
{
$component = new class () extends \Genius257\View\Component {
$component = new class () extends \Genius257\View\Component
{

public function render()
{
Expand Down

0 comments on commit 03edadc

Please sign in to comment.