Skip to content

Commit

Permalink
Update composer deps
Browse files Browse the repository at this point in the history
Don't fail on broken database download
  • Loading branch information
Synchro committed Jun 23, 2015
1 parent 139e8ee commit 8b682da
Show file tree
Hide file tree
Showing 3 changed files with 252 additions and 86 deletions.
6 changes: 6 additions & 0 deletions Tests/UAS/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public function testExpires()

public function testUpdateDatabase()
{
$this->markTestIncomplete(
'The free UAS database download is no longer available.'
);
$this->assertTrue(self::$uasparser->downloadData()); //Should cause a download
$this->assertTrue(self::$uasparser->downloadData(true)); //Should also cause a download
$this->assertTrue(self::$uasparser->downloadData()); //Should NOT cause a download
Expand All @@ -91,6 +94,9 @@ public function testChecksums()
$this->resetURLs();
}

/**
* @depends testUpdateDatabase
*/
public function testPermissions()
{
$path = self::$uasparser->getCacheDir() . DIRECTORY_SEPARATOR . 'uasdata.ini';
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "4.3.*",
"mikey179/vfsStream": "1.4.*@dev",
"phpunit/phpunit": "~4.7",
"mikey179/vfsStream": "~1.5",
"satooshi/php-coveralls": "dev-master",
"phpunit/phpcov": "dev-master",
"phpunit/phpunit-story": "*"
Expand Down
Loading

0 comments on commit 8b682da

Please sign in to comment.