Skip to content

Conversation

peter279k
Copy link

@peter279k peter279k commented Nov 12, 2019

Changed log

  • The PHPUnit fixture setUp method is protected, not public.
  • Removing additional white spaces.
  • Using the assertTrue and assertFalse to assert expected value is true and false.
  • Using the assertInternalType is assert expected value type is string.
  • To avoid logical condition statement inside assertion, using the assertContains to assert the expected sub string contains on specific string result.

Copy link
Member

@goetas goetas left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Looks good except one small thing.

@@ -645,8 +645,8 @@ public function testHandlingInvalidRawContent()

$contents = $this->html5->saveHTML($dom);

$this->assertTrue(false !== strpos($contents, '<script id="template" type="x-tmpl-mustache">
$this->assertContains('<script id="template" type="x-tmpl-mustache">
Copy link
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants