update v 1.0.7.5

This commit is contained in:
Sujit Prasad
2016-06-13 20:41:55 +05:30
parent aa9786d829
commit 283d97e3ea
5078 changed files with 339851 additions and 175995 deletions

View File

@@ -1,7 +1,3 @@
build/api
build/code-browser
build/coverage
build/logs
build/pdepend
cache.properties
phpunit.xml
/vendor
/composer.lock

View File

@@ -6,10 +6,18 @@ php:
- 5.4
- 5.5
- 5.6
- 7.0
- nightly
- hhvm
before_install:
- composer self-update
install:
- travis_retry composer install --no-interaction --prefer-source
script:
- phpunit --bootstrap src/Timer.php tests
- ./vendor/bin/phpunit --bootstrap src/Timer.php tests
notifications:
email: false

View File

@@ -44,4 +44,4 @@ print PHP_Timer::resourceUsage();
The code above yields the output below:
Time: 0 ms, Memory: 0.50Mb
Time: 0 ms, Memory: 0.50MB

View File

@@ -21,9 +21,13 @@
"require": {
"php": ">=5.3.3"
},
"require-dev": {
"phpunit/phpunit": "~4|~5"
},
"autoload": {
"classmap": [
"src/"
]
}
}

View File

@@ -91,7 +91,7 @@ class PHP_Timer
public static function resourceUsage()
{
return sprintf(
'Time: %s, Memory: %4.2fMb',
'Time: %s, Memory: %4.2fMB',
self::timeSinceStartOfRequest(),
memory_get_peak_usage(true) / 1048576
);

View File

@@ -54,7 +54,7 @@ class PHP_TimerTest extends PHPUnit_Framework_TestCase
public function testResourceUsage()
{
$this->assertStringMatchesFormat(
'Time: %s, Memory: %s',
'Time: %s, Memory: %fMB',
PHP_Timer::resourceUsage()
);
}