Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .coveralls.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ script:
- phpunit --coverage-clover build/logs/clover.xml

after_script:
- ./vendor/bin/coveralls -v
- ./vendor/bin/php-coveralls -v
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"require-dev": {
"mikey179/vfsStream": "~1",
"phpunit/phpunit": "4.6.*",
"satooshi/php-coveralls": "dev-master"
"satooshi/php-coveralls": "^2.0"
},
"autoload": {
"files": ["google/appengine/runtime/autoloader.php"]
Expand Down
1 change: 1 addition & 0 deletions google/appengine/api/cloud_storage/CloudStorageTools.php
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,7 @@ private static function sendHeader($key, $value) {
private static function getUploadMaxFileSizeInBytes() {
$val = trim(ini_get('upload_max_filesize'));
$unit = strtolower(substr($val, -1));
$val = substr($val, 0, -1);
switch ($unit) {
case 'g':
$val *= 1024;
Expand Down
13 changes: 0 additions & 13 deletions google/appengine/runtime/GlobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,19 +141,6 @@ public function testWildcardPath() {
$this->assertEquals(['foo/1.txt', 'foo/2.txt'], $result);
}

public function testErrors() {
// Match the semantics of glob as observed in
// https://github.com/php/php-src/blob/master/ext/standard/tests/file/glob_error.phpt
$this->setExpectedException('PHPUnit_Framework_Error_Warning');
Glob::doGlob(); // Not enough arguments
$this->setExpectedException('PHPUnit_Framework_Error_Warning');
Glob::doGlob("*", GLOB_ERR, 2); // Too many arguments
$this->setExpectedException('PHPUnit_Framework_Error_Warning');
Glob::doGlob('*', '');
$this->setExpectedException('PHPUnit_Framework_Error_Warning');
Glob::doGlob('*', 'str');
}

/**
* @dataProvider braceExpansionDataProvider
*/
Expand Down