Skip to content

Commit

Permalink
Merge pull request #5 from nicolasmure/code-review
Browse files Browse the repository at this point in the history
code review
  • Loading branch information
Nicolas MURE authored Nov 24, 2016
2 parents 5617e45 + 0ca2579 commit f57e2e3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
15 changes: 9 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
language: php
php:
- '5.3'
- '7.0'

env:
- SYMFONY_VERSION="2.4.*"
- SYMFONY_VERSION="3.0.*"
matrix:
include:
- php: 5.3
env:
- SYMFONY_VERSION='2.5.*'
- php: 7.0
env:
- SYMFONY_VERSION='3.0.*'

before_install:
- mkdir -p build/logs
- composer self-update
- sh -c 'if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/symfony=$SYMFONY_VERSION; fi;'

install:
- composer require satooshi/php-coveralls '~1.0'
Expand Down
4 changes: 2 additions & 2 deletions Tests/Unit/CrawlerDetect/CrawlerDetectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class CrawlerDetectTest extends TestCase
private $browserUA = 'Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0';
private $crawlerUA = 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)';

public function testRequestNotFromACrawler()
public function testBrowserRequest()
{
$rsMock = $this->getRequestStackMockWithMasterRequest($this->browserUA);

Expand All @@ -22,7 +22,7 @@ public function testRequestNotFromACrawler()
$this->assertTrue($crawlerDetect->isCrawler($this->crawlerUA));
}

public function testRequestFromACrawler()
public function testCrawlerRequest()
{
$rsMock = $this->getRequestStackMockWithMasterRequest($this->crawlerUA);

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"require": {
"php": ">=5.3.0",
"symfony/framework-bundle": "~2.4|~3.0",
"symfony/framework-bundle": "~2.5|~3.0",
"jaybizzle/crawler-detect": "1.*"
},
"autoload": {
Expand Down

0 comments on commit f57e2e3

Please sign in to comment.