Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test enhancement #172

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

2 participants