Laravel version update

Laravel version update
This commit is contained in:
Manish Verma
2018-08-06 18:48:58 +05:30
parent d143048413
commit 126fbb0255
13678 changed files with 1031482 additions and 778530 deletions

View File

@@ -1,3 +1,4 @@
/.idea
/vendor
/composer.lock

View File

@@ -1,30 +1,27 @@
language: php
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- nightly
- hhvm
- 7.0snapshot
- 7.1
- 7.1snapshot
- master
sudo: false
before_install:
- composer self-update
- composer clear-cache
install:
- travis_retry composer install --no-interaction --prefer-source
- travis_retry composer update --no-interaction --no-ansi --no-progress --no-suggest --optimize-autoloader --prefer-stable
script:
- ./vendor/bin/phpunit --bootstrap src/Timer.php tests
- ./vendor/bin/phpunit
notifications:
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/6668f52f3dd4e3f81960
on_success: always
on_failure: always
on_start: false

View File

@@ -6,13 +6,13 @@ Utility class for timing things, factored out of PHPUnit into a stand-alone comp
## Installation
To add this package as a local, per-project dependency to your project, simply add a dependency on `phpunit/php-timer` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on PHP_Timer:
You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):
{
"require": {
"phpunit/php-timer": "~1.0"
}
}
composer require phpunit/php-timer
If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
composer require --dev phpunit/php-timer
## Usage
@@ -21,8 +21,6 @@ To add this package as a local, per-project dependency to your project, simply a
```php
PHP_Timer::start();
$timer->start();
// ...
$time = PHP_Timer::stop();

View File

@@ -15,19 +15,23 @@
}
],
"support": {
"issues": "https://github.com/sebastianbergmann/php-timer/issues",
"irc": "irc://irc.freenode.net/phpunit"
"issues": "https://github.com/sebastianbergmann/php-timer/issues"
},
"require": {
"php": ">=5.3.3"
"php": "^5.3.3 || ^7.0"
},
"require-dev": {
"phpunit/phpunit": "~4|~5"
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
},
"autoload": {
"classmap": [
"src/"
]
},
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
}
}

19
vendor/phpunit/php-timer/phpunit.xml vendored Normal file
View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.0/phpunit.xsd"
bootstrap="vendor/autoload.php"
forceCoversAnnotation="true"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
verbose="true">
<testsuite>
<directory suffix="Test.php">tests</directory>
</testsuite>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</phpunit>

View File

@@ -10,8 +10,6 @@
/**
* Utility class for timing.
*
* @since Class available since Release 1.0.0
*/
class PHP_Timer
{

View File

@@ -8,12 +8,9 @@
* file that was distributed with this source code.
*/
/**
* Tests for PHP_Timer.
*
* @since Class available since Release 1.0.0
*/
class PHP_TimerTest extends PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;
class PHP_TimerTest extends TestCase
{
/**
* @covers PHP_Timer::start