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 #14

Merged
merged 6 commits into from
Apr 6, 2018
Merged

test enhancement #14

merged 6 commits into from
Apr 6, 2018

Conversation

peter279k
Copy link
Contributor

Changed log

  • update the PHPUnit version.
  • using assertTrue and assertFalse to assert the boolean.

@@ -37,7 +37,7 @@ public function testBots()

foreach ($lines as $line) {
$test = Crawler::isCrawler($line);
$this->assertEquals($test, true, $line);
$this->assertTrue($test);
Copy link
Owner

Choose a reason for hiding this comment

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

Can we keep the $line var please as the second parameter, so we know what string the test fails on...

$this->assertTrue($test, $line);

@JayBizzle
Copy link
Owner

JayBizzle commented Apr 6, 2018

Can you sort the failing test please, and address by above comment.

Thank you

@JayBizzle JayBizzle merged commit 2e684c2 into JayBizzle:master Apr 6, 2018
@JayBizzle
Copy link
Owner

❤️

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