From 4cd4a307bb4d129e07fbbcd411517226a9d90f3e Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Tue, 11 Feb 2020 07:48:35 +0100 Subject: [PATCH 1/6] Test on PHP 7.3 and 7.4 --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index d1b6f65f..135eb33d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,8 @@ php: - 7.0 - 7.1 - 7.2 + - 7.3 + - 7.4 - nightly matrix: From 1411ea2e274e589ee8f12337942bb68149c52648 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Sat, 22 Feb 2020 22:30:08 +0100 Subject: [PATCH 2/6] Lock Travis distro so new future defaults will not break the build --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 135eb33d..a64f1032 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,9 @@ php: - 7.4 - nightly +# lock distro so new future defaults will not break the build +dist: trusty + matrix: allow_failures: - php: 5.4 From b8c8d47eccaa2dfcbc8e92cc2ddf8e32558fb3a2 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Sun, 23 Feb 2020 21:42:58 +0100 Subject: [PATCH 3/6] Widen used PHPUnit version range include PHP 7.4 supporting version --- composer.json | 2 +- composer.lock | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index f2c1004a..1ca82f25 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ }, "require-dev": { "clue/block-react": "^1.1", - "phpunit/phpunit": "^6.0 || ^5.0 || ^4.8" + "phpunit/phpunit": "^7.0 || ^6.0 || ^5.0 || ^4.8" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 04110066..8eeefcbf 100644 --- a/composer.lock +++ b/composer.lock @@ -1,10 +1,10 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "0301b26ae1ada823f6fbeb0b71fc57bb", + "content-hash": "2aefd22769ba548ab7551f0e9fa0ccc2", "packages": [ { "name": "cakephp/utility", @@ -1614,6 +1614,7 @@ "mock", "xunit" ], + "abandoned": true, "time": "2015-10-02T06:51:40+00:00" }, { From a7695e33338f4dbde49f1c49b716c7415eee2fcd Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Sun, 23 Feb 2020 21:52:26 +0100 Subject: [PATCH 4/6] Drop composer.lock so CI can pick most appropriate PHPUnit version --- composer.lock | 2054 ------------------------------------------------- 1 file changed, 2054 deletions(-) delete mode 100644 composer.lock diff --git a/composer.lock b/composer.lock deleted file mode 100644 index 8eeefcbf..00000000 --- a/composer.lock +++ /dev/null @@ -1,2054 +0,0 @@ -{ - "_readme": [ - "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", - "This file is @generated automatically" - ], - "content-hash": "2aefd22769ba548ab7551f0e9fa0ccc2", - "packages": [ - { - "name": "cakephp/utility", - "version": "3.4.7", - "source": { - "type": "git", - "url": "https://github.com/cakephp/utility.git", - "reference": "f194ce6c83f54d96ce8ae0020b5f58fa850a8ef4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/cakephp/utility/zipball/f194ce6c83f54d96ce8ae0020b5f58fa850a8ef4", - "reference": "f194ce6c83f54d96ce8ae0020b5f58fa850a8ef4", - "shasum": "" - }, - "suggest": { - "ext-intl": "To use Text::transliterate() or Text::slug()", - "lib-ICU": "To use Text::transliterate() or Text::slug()" - }, - "type": "library", - "autoload": { - "psr-4": { - "Cake\\Utility\\": "." - }, - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "CakePHP Community", - "homepage": "https://cakephp.org" - } - ], - "description": "CakePHP Utility classes such as Inflector, String, Hash, and Security", - "time": "2017-04-18T04:05:20+00:00" - }, - { - "name": "doctrine/inflector", - "version": "v1.1.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/inflector.git", - "reference": "90b2128806bfde671b6952ab8bea493942c1fdae" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/inflector/zipball/90b2128806bfde671b6952ab8bea493942c1fdae", - "reference": "90b2128806bfde671b6952ab8bea493942c1fdae", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "require-dev": { - "phpunit/phpunit": "4.*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1.x-dev" - } - }, - "autoload": { - "psr-0": { - "Doctrine\\Common\\Inflector\\": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com" - } - ], - "description": "Common String Manipulations with regard to casing and singular/plural rules.", - "homepage": "http://www.doctrine-project.org", - "keywords": [ - "inflection", - "pluralize", - "singularize", - "string" - ], - "time": "2015-11-06T14:35:42+00:00" - }, - { - "name": "doctrine/instantiator", - "version": "1.0.5", - "source": { - "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", - "shasum": "" - }, - "require": { - "php": ">=5.3,<8.0-DEV" - }, - "require-dev": { - "athletic/athletic": "~0.1.8", - "ext-pdo": "*", - "ext-phar": "*", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~2.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "http://ocramius.github.com/" - } - ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://github.com/doctrine/instantiator", - "keywords": [ - "constructor", - "instantiate" - ], - "time": "2015-06-14T21:17:01+00:00" - }, - { - "name": "evenement/evenement", - "version": "v2.1.0", - "source": { - "type": "git", - "url": "https://github.com/igorw/evenement.git", - "reference": "6ba9a777870ab49f417e703229d53931ed40fd7a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/igorw/evenement/zipball/6ba9a777870ab49f417e703229d53931ed40fd7a", - "reference": "6ba9a777870ab49f417e703229d53931ed40fd7a", - "shasum": "" - }, - "require": { - "php": ">=5.4.0" - }, - "require-dev": { - "phpunit/phpunit": "^6.0||^5.7||^4.8.35" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0-dev" - } - }, - "autoload": { - "psr-0": { - "Evenement": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Igor Wiedler", - "email": "igor@wiedler.ch" - } - ], - "description": "Événement is a very simple event dispatching library for PHP", - "keywords": [ - "event-dispatcher", - "event-emitter" - ], - "time": "2017-07-17T17:39:19+00:00" - }, - { - "name": "indigophp/hash-compat", - "version": "v1.1.0", - "source": { - "type": "git", - "url": "https://github.com/indigophp/hash-compat.git", - "reference": "43a19f42093a0cd2d11874dff9d891027fc42214" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/indigophp/hash-compat/zipball/43a19f42093a0cd2d11874dff9d891027fc42214", - "reference": "43a19f42093a0cd2d11874dff9d891027fc42214", - "shasum": "" - }, - "require": { - "php": ">=5.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2-dev" - } - }, - "autoload": { - "files": [ - "src/hash_equals.php", - "src/hash_pbkdf2.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com" - } - ], - "description": "Backports hash_* functionality to older PHP versions", - "homepage": "https://indigophp.com", - "keywords": [ - "hash", - "hash_equals", - "hash_pbkdf2" - ], - "time": "2015-08-22T07:03:35+00:00" - }, - { - "name": "paragonie/random_compat", - "version": "v2.0.11", - "source": { - "type": "git", - "url": "https://github.com/paragonie/random_compat.git", - "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/paragonie/random_compat/zipball/5da4d3c796c275c55f057af5a643ae297d96b4d8", - "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8", - "shasum": "" - }, - "require": { - "php": ">=5.2.0" - }, - "require-dev": { - "phpunit/phpunit": "4.*|5.*" - }, - "suggest": { - "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." - }, - "type": "library", - "autoload": { - "files": [ - "lib/random.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Paragon Initiative Enterprises", - "email": "security@paragonie.com", - "homepage": "https://paragonie.com" - } - ], - "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", - "keywords": [ - "csprng", - "pseudorandom", - "random" - ], - "time": "2017-09-27T21:40:39+00:00" - }, - { - "name": "react/cache", - "version": "v0.4.2", - "source": { - "type": "git", - "url": "https://github.com/reactphp/cache.git", - "reference": "75494f26b4ef089db9bf8c90b63c296246e099e8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/cache/zipball/75494f26b4ef089db9bf8c90b63c296246e099e8", - "reference": "75494f26b4ef089db9bf8c90b63c296246e099e8", - "shasum": "" - }, - "require": { - "php": ">=5.3.0", - "react/promise": "~2.0|~1.1" - }, - "require-dev": { - "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35" - }, - "type": "library", - "autoload": { - "psr-4": { - "React\\Cache\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Async, Promise-based cache interface for ReactPHP", - "keywords": [ - "cache", - "caching", - "promise", - "reactphp" - ], - "time": "2017-12-20T16:47:13+00:00" - }, - { - "name": "react/child-process", - "version": "v0.5.2", - "source": { - "type": "git", - "url": "https://github.com/reactphp/child-process.git", - "reference": "aae49d7f1340bafb695b9af3ce4421ea41a39620" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/child-process/zipball/aae49d7f1340bafb695b9af3ce4421ea41a39620", - "reference": "aae49d7f1340bafb695b9af3ce4421ea41a39620", - "shasum": "" - }, - "require": { - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "php": ">=5.3.0", - "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", - "react/stream": "^1.0 || ^0.7.6" - }, - "require-dev": { - "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35", - "sebastian/environment": "^3.0 || ^2.0 || ^1.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "React\\ChildProcess\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Event-driven library for executing child processes with ReactPHP.", - "keywords": [ - "event-driven", - "process", - "reactphp" - ], - "time": "2018-01-18T14:53:06+00:00" - }, - { - "name": "react/dns", - "version": "v0.4.13", - "source": { - "type": "git", - "url": "https://github.com/reactphp/dns.git", - "reference": "7d1e08c300fd7de600810883386ee5e2a64898f4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/dns/zipball/7d1e08c300fd7de600810883386ee5e2a64898f4", - "reference": "7d1e08c300fd7de600810883386ee5e2a64898f4", - "shasum": "" - }, - "require": { - "php": ">=5.3.0", - "react/cache": "~0.4.0|~0.3.0", - "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", - "react/promise": "^2.1 || ^1.2.1", - "react/promise-timer": "^1.2", - "react/stream": "^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4.5" - }, - "require-dev": { - "clue/block-react": "^1.2", - "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35" - }, - "type": "library", - "autoload": { - "psr-4": { - "React\\Dns\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Async DNS resolver for ReactPHP", - "keywords": [ - "async", - "dns", - "dns-resolver", - "reactphp" - ], - "time": "2018-02-27T12:51:22+00:00" - }, - { - "name": "react/event-loop", - "version": "v0.5.2", - "source": { - "type": "git", - "url": "https://github.com/reactphp/event-loop.git", - "reference": "e94985d93c689c554265b01014f8c3064921ca27" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/event-loop/zipball/e94985d93c689c554265b01014f8c3064921ca27", - "reference": "e94985d93c689c554265b01014f8c3064921ca27", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.8.35 || ^5.7 || ^6.4" - }, - "suggest": { - "ext-event": "~1.0 for ExtEventLoop", - "ext-pcntl": "For signal handling support when using the StreamSelectLoop" - }, - "type": "library", - "autoload": { - "psr-4": { - "React\\EventLoop\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "ReactPHP's core reactor event loop that libraries can use for evented I/O.", - "keywords": [ - "asynchronous", - "event-loop" - ], - "time": "2018-04-24T11:23:06+00:00" - }, - { - "name": "react/promise", - "version": "v2.5.1", - "source": { - "type": "git", - "url": "https://github.com/reactphp/promise.git", - "reference": "62785ae604c8d69725d693eb370e1d67e94c4053" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise/zipball/62785ae604c8d69725d693eb370e1d67e94c4053", - "reference": "62785ae604c8d69725d693eb370e1d67e94c4053", - "shasum": "" - }, - "require": { - "php": ">=5.4.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.8" - }, - "type": "library", - "autoload": { - "psr-4": { - "React\\Promise\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com" - } - ], - "description": "A lightweight implementation of CommonJS Promises/A for PHP", - "keywords": [ - "promise", - "promises" - ], - "time": "2017-03-25T12:08:31+00:00" - }, - { - "name": "react/promise-stream", - "version": "v1.1.1", - "source": { - "type": "git", - "url": "https://github.com/reactphp/promise-stream.git", - "reference": "00e269d611e9c9a29356aef64c07f7e513e73dc9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise-stream/zipball/00e269d611e9c9a29356aef64c07f7e513e73dc9", - "reference": "00e269d611e9c9a29356aef64c07f7e513e73dc9", - "shasum": "" - }, - "require": { - "php": ">=5.3", - "react/promise": "^2.1 || ^1.2", - "react/stream": "^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4 || ^0.3" - }, - "require-dev": { - "clue/block-react": "^1.0", - "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35", - "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3", - "react/promise-timer": "^1.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "React\\Promise\\Stream\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@lueck.tv" - } - ], - "description": "The missing link between Promise-land and Stream-land for ReactPHP", - "homepage": "https://github.com/reactphp/promise-stream", - "keywords": [ - "Buffer", - "async", - "promise", - "reactphp", - "stream", - "unwrap" - ], - "time": "2017-12-22T12:02:05+00:00" - }, - { - "name": "react/promise-timer", - "version": "v1.2.1", - "source": { - "type": "git", - "url": "https://github.com/reactphp/promise-timer.git", - "reference": "9b4cd9cbe7457e0d87fe8aa7ccceab8a2c830fbd" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise-timer/zipball/9b4cd9cbe7457e0d87fe8aa7ccceab8a2c830fbd", - "reference": "9b4cd9cbe7457e0d87fe8aa7ccceab8a2c830fbd", - "shasum": "" - }, - "require": { - "php": ">=5.3", - "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", - "react/promise": "~2.1|~1.2" - }, - "require-dev": { - "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35" - }, - "type": "library", - "autoload": { - "psr-4": { - "React\\Promise\\Timer\\": "src/" - }, - "files": [ - "src/functions.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@lueck.tv" - } - ], - "description": "A trivial implementation of timeouts for Promises, built on top of ReactPHP.", - "homepage": "https://github.com/react/promise-timer", - "keywords": [ - "async", - "event-loop", - "promise", - "reactphp", - "timeout", - "timer" - ], - "time": "2017-12-22T15:41:41+00:00" - }, - { - "name": "react/socket", - "version": "v0.8.10", - "source": { - "type": "git", - "url": "https://github.com/reactphp/socket.git", - "reference": "d3957313c92b539537fccc80170c05a27ec25796" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/socket/zipball/d3957313c92b539537fccc80170c05a27ec25796", - "reference": "d3957313c92b539537fccc80170c05a27ec25796", - "shasum": "" - }, - "require": { - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "php": ">=5.3.0", - "react/dns": "^0.4.13", - "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", - "react/promise": "^2.1 || ^1.2", - "react/promise-timer": "~1.0", - "react/stream": "^1.0 || ^0.7.1" - }, - "require-dev": { - "clue/block-react": "^1.2", - "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35" - }, - "type": "library", - "autoload": { - "psr-4": { - "React\\Socket\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP", - "keywords": [ - "Connection", - "Socket", - "async", - "reactphp", - "stream" - ], - "time": "2018-02-28T09:32:38+00:00" - }, - { - "name": "react/stream", - "version": "v0.7.7", - "source": { - "type": "git", - "url": "https://github.com/reactphp/stream.git", - "reference": "10100896018fd847a257cd81143b8e1b7be08e40" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/stream/zipball/10100896018fd847a257cd81143b8e1b7be08e40", - "reference": "10100896018fd847a257cd81143b8e1b7be08e40", - "shasum": "" - }, - "require": { - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "php": ">=5.3.8", - "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5" - }, - "require-dev": { - "clue/stream-filter": "~1.2", - "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35" - }, - "type": "library", - "autoload": { - "psr-4": { - "React\\Stream\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Event-driven readable and writable streams for non-blocking I/O in ReactPHP", - "keywords": [ - "event-driven", - "io", - "non-blocking", - "pipe", - "reactphp", - "readable", - "stream", - "writable" - ], - "time": "2018-01-19T15:04:38+00:00" - }, - { - "name": "tivie/php-os-detector", - "version": "1.1.0", - "source": { - "type": "git", - "url": "https://github.com/tivie/php-os-detector.git", - "reference": "9461dcd85c00e03842264f2fc8ccdc8d46867321" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/tivie/php-os-detector/zipball/9461dcd85c00e03842264f2fc8ccdc8d46867321", - "reference": "9461dcd85c00e03842264f2fc8ccdc8d46867321", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "require-dev": { - "phpunit/phpunit": "4.3.*" - }, - "type": "library", - "autoload": { - "psr-4": { - "Tivie\\OS\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "APACHE 2.0" - ], - "authors": [ - { - "name": "Estevão Soares dos Santos", - "email": "estevao@soares-dos-santos.com" - } - ], - "description": "A small utility library that detects the OS the server is running on", - "homepage": "http://tivie.github.com/php-os-detector/", - "keywords": [ - "detection", - "detector", - "identification", - "operating system", - "os", - "os detection" - ], - "time": "2017-10-21T03:33:59+00:00" - }, - { - "name": "wyrihaximus/cpu-core-detector", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/WyriHaximus/php-cpu-core-detector.git", - "reference": "459dbf380172f06de6bf1aaecb9b1a003f7937b1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/WyriHaximus/php-cpu-core-detector/zipball/459dbf380172f06de6bf1aaecb9b1a003f7937b1", - "reference": "459dbf380172f06de6bf1aaecb9b1a003f7937b1", - "shasum": "" - }, - "require": { - "php": "^5.4||^7.0", - "react/child-process": "^0.5 || ^0.4", - "tivie/php-os-detector": "^1.0", - "wyrihaximus/react-child-process-promise": "^2.0", - "wyrihaximus/ticking-promise": "^1.5" - }, - "require-dev": { - "phake/phake": "~1.0.6", - "phpunit/phpunit": "^4.0||^5.0", - "squizlabs/php_codesniffer": "^1.5.6", - "vectorface/dunit": "~2.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "WyriHaximus\\CpuCoreDetector\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Cees-Jan Kiewiet", - "email": "ceesjank@gmail.com" - } - ], - "time": "2018-02-24T17:44:46+00:00" - }, - { - "name": "wyrihaximus/json-throwable", - "version": "1.1.1", - "source": { - "type": "git", - "url": "https://github.com/WyriHaximus/php-json-throwable.git", - "reference": "fc3588681dcccc3f1f2f94c8eca71687f0899340" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/WyriHaximus/php-json-throwable/zipball/fc3588681dcccc3f1f2f94c8eca71687f0899340", - "reference": "fc3588681dcccc3f1f2f94c8eca71687f0899340", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.0.5", - "php": "^7.0 || ^5.4" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^2.2", - "jakub-onderka/php-console-highlighter": "^0.3.2", - "jakub-onderka/php-parallel-lint": "^0.9.2", - "phpunit/phpunit": "^4.8.35 || ^5.0 || ^6.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "WyriHaximus\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Cees-Jan Kiewiet", - "email": "ceesjank@gmail.com" - } - ], - "description": "JSON encode and decode throwables and exceptions", - "time": "2018-03-12T21:39:58+00:00" - }, - { - "name": "wyrihaximus/react-child-process-messenger", - "version": "2.8.1", - "source": { - "type": "git", - "url": "https://github.com/WyriHaximus/reactphp-child-process-messenger.git", - "reference": "afde926a729868f5d6f64f378836123c3b247dea" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/WyriHaximus/reactphp-child-process-messenger/zipball/afde926a729868f5d6f64f378836123c3b247dea", - "reference": "afde926a729868f5d6f64f378836123c3b247dea", - "shasum": "" - }, - "require": { - "cakephp/utility": "^3.4", - "doctrine/inflector": "^1.0", - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "indigophp/hash-compat": "^1.0", - "paragonie/random_compat": "^2.0", - "php": "^5.4||^7.0", - "react/child-process": "^0.5 || ^0.4", - "react/promise": "^2.2", - "react/promise-stream": "^1.1", - "react/socket": "^0.8.1", - "wyrihaximus/json-throwable": "^2.0 || ^1.1.1", - "wyrihaximus/ticking-promise": "^1.4" - }, - "require-dev": { - "clue/block-react": "^1.2", - "friendsofphp/php-cs-fixer": "^2.2", - "jakub-onderka/php-console-highlighter": "^0.3.2", - "jakub-onderka/php-parallel-lint": "^0.9.2", - "phpunit/phpunit": "^4.8.35||^5.0||^6.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "WyriHaximus\\React\\ChildProcess\\Messenger\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Cees-Jan Kiewiet", - "email": "ceesjank@gmail.com", - "homepage": "http://wyrihaximus.net/" - } - ], - "description": "Messenger decorator for react/child-process", - "time": "2018-03-23T21:26:12+00:00" - }, - { - "name": "wyrihaximus/react-child-process-pool", - "version": "1.4.2", - "source": { - "type": "git", - "url": "https://github.com/WyriHaximus/reactphp-child-process-pool.git", - "reference": "232f2aef55ce6df816f837442e79ff2976ebc8ed" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/WyriHaximus/reactphp-child-process-pool/zipball/232f2aef55ce6df816f837442e79ff2976ebc8ed", - "reference": "232f2aef55ce6df816f837442e79ff2976ebc8ed", - "shasum": "" - }, - "require": { - "evenement/evenement": "^3.0 || ^2.0", - "php": "^5.4||^7.0", - "wyrihaximus/cpu-core-detector": "^1.0.0", - "wyrihaximus/react-child-process-messenger": "^2.7.1", - "wyrihaximus/ticking-promise": "^1.5" - }, - "require-dev": { - "clue/block-react": "^1.1", - "phake/phake": "^2.2.1", - "phpunit/phpunit": "^4.8.35||^5.0", - "squizlabs/php_codesniffer": "^1.5.6", - "vectorface/dunit": "~2.0" - }, - "suggest": { - "wyrihaximus/react-child-process-pool-redis-queue": "Redis RPC queue" - }, - "type": "library", - "autoload": { - "psr-4": { - "WyriHaximus\\React\\ChildProcess\\Pool\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Cees-Jan Kiewiet", - "email": "ceesjank@gmail.com" - } - ], - "time": "2018-04-23T17:21:00+00:00" - }, - { - "name": "wyrihaximus/react-child-process-promise", - "version": "2.0.1", - "source": { - "type": "git", - "url": "https://github.com/WyriHaximus/reactphp-child-process-promise.git", - "reference": "9b6f1bace7af43afc79fa85b91c793cdb3ff199b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/WyriHaximus/reactphp-child-process-promise/zipball/9b6f1bace7af43afc79fa85b91c793cdb3ff199b", - "reference": "9b6f1bace7af43afc79fa85b91c793cdb3ff199b", - "shasum": "" - }, - "require": { - "php": "^5.4||^7.0", - "react/child-process": "^0.5 || ^0.4", - "react/promise": "^2.2", - "wyrihaximus/ticking-promise": "^1.5.2" - }, - "require-dev": { - "phake/phake": "^2.1", - "phpunit/phpunit": "^4.4||^5.0", - "squizlabs/php_codesniffer": "^1.5.6", - "vectorface/dunit": "^2.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "WyriHaximus\\React\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Cees-Jan Kiewiet", - "email": "ceesjank@gmail.com", - "homepage": "http://wyrihaximus.net/" - } - ], - "description": "Wrapping ticks into a promise", - "time": "2017-10-17T11:37:15+00:00" - }, - { - "name": "wyrihaximus/ticking-promise", - "version": "1.6.3", - "source": { - "type": "git", - "url": "https://github.com/WyriHaximus/TickingPromise.git", - "reference": "4bb99024402bb7526de8880f3dab0c1f0858def5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/WyriHaximus/TickingPromise/zipball/4bb99024402bb7526de8880f3dab0c1f0858def5", - "reference": "4bb99024402bb7526de8880f3dab0c1f0858def5", - "shasum": "" - }, - "require": { - "php": "^7.0 || ^5.4", - "react/event-loop": "^1.0 || ^0.5 || ^0.4", - "react/promise": "~2.1" - }, - "require-dev": { - "phpunit/phpunit": "~4.4", - "squizlabs/php_codesniffer": "^1.5.6", - "vectorface/dunit": "~1.4" - }, - "type": "library", - "autoload": { - "psr-4": { - "WyriHaximus\\React\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Cees-Jan Kiewiet", - "email": "ceesjank@gmail.com", - "homepage": "http://wyrihaximus.net/" - } - ], - "description": "Wrapping ticks into a promise", - "time": "2018-04-05T12:36:50+00:00" - } - ], - "packages-dev": [ - { - "name": "clue/block-react", - "version": "v1.2.0", - "source": { - "type": "git", - "url": "https://github.com/clue/php-block-react.git", - "reference": "966c255580ec7a0259338798ddb89f77e121fe9e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/clue/php-block-react/zipball/966c255580ec7a0259338798ddb89f77e121fe9e", - "reference": "966c255580ec7a0259338798ddb89f77e121fe9e", - "shasum": "" - }, - "require": { - "php": ">=5.3", - "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", - "react/promise": "~2.1|~1.2", - "react/promise-timer": "~1.0" - }, - "require-dev": { - "phpunit/phpunit": "^5.0 || ^4.8" - }, - "type": "library", - "autoload": { - "files": [ - "src/functions.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@lueck.tv" - } - ], - "description": "Integrate async React PHP components into your blocking environment", - "homepage": "https://github.com/clue/php-block-react", - "keywords": [ - "async", - "blocking", - "event loop", - "promise", - "reactphp", - "synchronous" - ], - "time": "2017-08-03T13:14:15+00:00" - }, - { - "name": "phpdocumentor/reflection-docblock", - "version": "2.0.5", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "e6a969a640b00d8daa3c66518b0405fb41ae0c4b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/e6a969a640b00d8daa3c66518b0405fb41ae0c4b", - "reference": "e6a969a640b00d8daa3c66518b0405fb41ae0c4b", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" - }, - "suggest": { - "dflydev/markdown": "~1.0", - "erusev/parsedown": "~1.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "psr-0": { - "phpDocumentor": [ - "src/" - ] - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "mike.vanriel@naenius.com" - } - ], - "time": "2016-01-25T08:17:30+00:00" - }, - { - "name": "phpspec/prophecy", - "version": "1.7.5", - "source": { - "type": "git", - "url": "https://github.com/phpspec/prophecy.git", - "reference": "dfd6be44111a7c41c2e884a336cc4f461b3b2401" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/dfd6be44111a7c41c2e884a336cc4f461b3b2401", - "reference": "dfd6be44111a7c41c2e884a336cc4f461b3b2401", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.0.2", - "php": "^5.3|^7.0", - "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0", - "sebastian/comparator": "^1.1|^2.0", - "sebastian/recursion-context": "^1.0|^2.0|^3.0" - }, - "require-dev": { - "phpspec/phpspec": "^2.5|^3.2", - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.7.x-dev" - } - }, - "autoload": { - "psr-0": { - "Prophecy\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, - { - "name": "Marcello Duarte", - "email": "marcello.duarte@gmail.com" - } - ], - "description": "Highly opinionated mocking framework for PHP 5.3+", - "homepage": "https://github.com/phpspec/prophecy", - "keywords": [ - "Double", - "Dummy", - "fake", - "mock", - "spy", - "stub" - ], - "time": "2018-02-19T10:16:54+00:00" - }, - { - "name": "phpunit/php-code-coverage", - "version": "2.2.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979", - "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "phpunit/php-file-iterator": "~1.3", - "phpunit/php-text-template": "~1.2", - "phpunit/php-token-stream": "~1.3", - "sebastian/environment": "^1.3.2", - "sebastian/version": "~1.0" - }, - "require-dev": { - "ext-xdebug": ">=2.1.4", - "phpunit/phpunit": "~4" - }, - "suggest": { - "ext-dom": "*", - "ext-xdebug": ">=2.2.1", - "ext-xmlwriter": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.2.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "keywords": [ - "coverage", - "testing", - "xunit" - ], - "time": "2015-10-06T15:47:00+00:00" - }, - { - "name": "phpunit/php-file-iterator", - "version": "1.4.5", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", - "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", - "keywords": [ - "filesystem", - "iterator" - ], - "time": "2017-11-27T13:52:08+00:00" - }, - { - "name": "phpunit/php-text-template", - "version": "1.2.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", - "keywords": [ - "template" - ], - "time": "2015-06-21T13:50:34+00:00" - }, - { - "name": "phpunit/php-timer", - "version": "1.0.9", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", - "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", - "shasum": "" - }, - "require": { - "php": "^5.3.3 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", - "keywords": [ - "timer" - ], - "time": "2017-02-26T11:10:40+00:00" - }, - { - "name": "phpunit/php-token-stream", - "version": "1.4.12", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16", - "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Wrapper around PHP's tokenizer extension.", - "homepage": "https://github.com/sebastianbergmann/php-token-stream/", - "keywords": [ - "tokenizer" - ], - "time": "2017-12-04T08:55:13+00:00" - }, - { - "name": "phpunit/phpunit", - "version": "4.8.36", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "46023de9a91eec7dfb06cc56cb4e260017298517" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/46023de9a91eec7dfb06cc56cb4e260017298517", - "reference": "46023de9a91eec7dfb06cc56cb4e260017298517", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-json": "*", - "ext-pcre": "*", - "ext-reflection": "*", - "ext-spl": "*", - "php": ">=5.3.3", - "phpspec/prophecy": "^1.3.1", - "phpunit/php-code-coverage": "~2.1", - "phpunit/php-file-iterator": "~1.4", - "phpunit/php-text-template": "~1.2", - "phpunit/php-timer": "^1.0.6", - "phpunit/phpunit-mock-objects": "~2.3", - "sebastian/comparator": "~1.2.2", - "sebastian/diff": "~1.2", - "sebastian/environment": "~1.3", - "sebastian/exporter": "~1.2", - "sebastian/global-state": "~1.0", - "sebastian/version": "~1.0", - "symfony/yaml": "~2.1|~3.0" - }, - "suggest": { - "phpunit/php-invoker": "~1.1" - }, - "bin": [ - "phpunit" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.8.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "The PHP Unit Testing framework.", - "homepage": "https://phpunit.de/", - "keywords": [ - "phpunit", - "testing", - "xunit" - ], - "time": "2017-06-21T08:07:12+00:00" - }, - { - "name": "phpunit/phpunit-mock-objects", - "version": "2.3.8", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983", - "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.0.2", - "php": ">=5.3.3", - "phpunit/php-text-template": "~1.2", - "sebastian/exporter": "~1.2" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "suggest": { - "ext-soap": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.3.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Mock Object library for PHPUnit", - "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", - "keywords": [ - "mock", - "xunit" - ], - "abandoned": true, - "time": "2015-10-02T06:51:40+00:00" - }, - { - "name": "sebastian/comparator", - "version": "1.2.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", - "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "sebastian/diff": "~1.2", - "sebastian/exporter": "~1.2 || ~2.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides the functionality to compare PHP values for equality", - "homepage": "http://www.github.com/sebastianbergmann/comparator", - "keywords": [ - "comparator", - "compare", - "equality" - ], - "time": "2017-01-29T09:50:25+00:00" - }, - { - "name": "sebastian/diff", - "version": "1.4.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4", - "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4", - "shasum": "" - }, - "require": { - "php": "^5.3.3 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Diff implementation", - "homepage": "https://github.com/sebastianbergmann/diff", - "keywords": [ - "diff" - ], - "time": "2017-05-22T07:24:03+00:00" - }, - { - "name": "sebastian/environment", - "version": "1.3.8", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/be2c607e43ce4c89ecd60e75c6a85c126e754aea", - "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea", - "shasum": "" - }, - "require": { - "php": "^5.3.3 || ^7.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.8 || ^5.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.3.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", - "keywords": [ - "Xdebug", - "environment", - "hhvm" - ], - "time": "2016-08-18T05:49:44+00:00" - }, - { - "name": "sebastian/exporter", - "version": "1.2.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4", - "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "sebastian/recursion-context": "~1.0" - }, - "require-dev": { - "ext-mbstring": "*", - "phpunit/phpunit": "~4.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.3.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "http://www.github.com/sebastianbergmann/exporter", - "keywords": [ - "export", - "exporter" - ], - "time": "2016-06-17T09:04:28+00:00" - }, - { - "name": "sebastian/global-state", - "version": "1.1.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", - "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.2" - }, - "suggest": { - "ext-uopz": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Snapshotting of global state", - "homepage": "http://www.github.com/sebastianbergmann/global-state", - "keywords": [ - "global state" - ], - "time": "2015-10-12T03:26:01+00:00" - }, - { - "name": "sebastian/recursion-context", - "version": "1.0.5", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b19cc3298482a335a95f3016d2f8a6950f0fbcd7", - "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2016-10-03T07:41:43+00:00" - }, - { - "name": "sebastian/version", - "version": "1.0.6", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", - "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", - "shasum": "" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", - "time": "2015-06-21T13:59:46+00:00" - }, - { - "name": "symfony/yaml", - "version": "v2.8.36", - "source": { - "type": "git", - "url": "https://github.com/symfony/yaml.git", - "reference": "be720fcfae4614df204190d57795351059946a77" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/be720fcfae4614df204190d57795351059946a77", - "reference": "be720fcfae4614df204190d57795351059946a77", - "shasum": "" - }, - "require": { - "php": ">=5.3.9" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.8-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Yaml\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Yaml Component", - "homepage": "https://symfony.com", - "time": "2018-01-03T07:36:31+00:00" - } - ], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": [], - "prefer-stable": false, - "prefer-lowest": false, - "platform": { - "php": ">=5.4.0" - }, - "platform-dev": [], - "platform-overrides": { - "php": "5.4" - } -} From f186687d80f4cbe52128e0078a94cb778891fd39 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Sun, 23 Feb 2020 22:08:38 +0100 Subject: [PATCH 5/6] Update composer.json with current PHP version on Travis --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index a64f1032..5112aaf1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,7 @@ matrix: install: - ./travis-init.sh + - composer config platform.php $(php -r 'echo PHP_VERSION;') - composer install -n script: From f2a4dfdd1286ab41048861b88fca83fe31eeb75e Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Sun, 26 Apr 2020 17:59:35 +0200 Subject: [PATCH 6/6] Use createMock instead of getMock to mock an object And drop old PHP versions that don't support the new mock method --- .travis.yml | 2 -- composer.json | 6 ++--- tests/ChildProcess/AdapterTest.php | 10 +++---- tests/FilesystemTest.php | 6 ++--- tests/FlagResolverTest.php | 2 +- tests/Node/DirectoryTest.php | 42 ++++++++++++++--------------- tests/Node/FileTest.php | 12 ++++----- tests/Node/RecursiveInvokerTest.php | 10 +++---- tests/ObjectStreamSinkTest.php | 2 +- tests/ObjectStreamTest.php | 2 +- tests/Stream/ReadableStreamTest.php | 12 ++++----- tests/Stream/WritableStreamTest.php | 8 +++--- tests/TestCase.php | 4 +-- 13 files changed, 58 insertions(+), 60 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5112aaf1..c1a33f1d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,8 +5,6 @@ cache: - $HOME/.composer/cache/files php: - - 5.4 - - 5.5 - 5.6 - 7.0 - 7.1 diff --git a/composer.json b/composer.json index 1ca82f25..bce039db 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "php": ">=5.4.0", + "php": ">=5.6.0", "evenement/evenement": "^3.0 || ^2.0", "react/event-loop": "^1.0 || ^0.5 || ^0.4", "react/promise": "~2.2", @@ -20,7 +20,7 @@ }, "require-dev": { "clue/block-react": "^1.1", - "phpunit/phpunit": "^7.0 || ^6.0 || ^5.0 || ^4.8" + "phpunit/phpunit": "^7.0 || ^6.0 || ^5.0" }, "autoload": { "psr-4": { @@ -36,7 +36,7 @@ "config": { "sort-packages": true, "platform": { - "php": "5.4" + "php": "5.6" } } } diff --git a/tests/ChildProcess/AdapterTest.php b/tests/ChildProcess/AdapterTest.php index 98b4a498..e57f2e2a 100644 --- a/tests/ChildProcess/AdapterTest.php +++ b/tests/ChildProcess/AdapterTest.php @@ -22,7 +22,7 @@ public function testInterface() { $this->assertInstanceOf( 'React\Filesystem\AdapterInterface', - new Adapter($this->getMock('React\EventLoop\LoopInterface'), [ + new Adapter($this->createMock('React\EventLoop\LoopInterface'), [ 'pool' => [ 'class' => 'WyriHaximus\React\ChildProcess\Pool\Pool\Dummy', ], @@ -32,7 +32,7 @@ public function testInterface() public function testGetLoop() { - $loop = $this->getMock('React\EventLoop\LoopInterface'); + $loop = $this->createMock('React\EventLoop\LoopInterface'); $filesystem = new Adapter($loop, [ 'pool' => [ 'class' => 'WyriHaximus\React\ChildProcess\Pool\Pool\Dummy', @@ -43,7 +43,7 @@ public function testGetLoop() public function testGetSetFilesystem() { - $loop = $this->getMock('React\EventLoop\LoopInterface'); + $loop = $this->createMock('React\EventLoop\LoopInterface'); $filesystem = new Adapter($loop, [ 'pool' => [ 'class' => 'WyriHaximus\React\ChildProcess\Pool\Pool\Dummy', @@ -214,7 +214,7 @@ public function callFilesystemProvider() */ public function testCallFilesystem($method, $arguments, $mockArguments) { - $loop = $this->getMock('React\EventLoop\LoopInterface'); + $loop = $this->createMock('React\EventLoop\LoopInterface'); $filesystem = new Adapter($loop, [ 'pool' => [ 'class' => 'React\Tests\Filesystem\ChildProcess\SingletonPoolStub', @@ -271,7 +271,7 @@ public function testLs() public function testLsStream() { - $loop = $this->getMock('React\EventLoop\LoopInterface'); + $loop = $this->createMock('React\EventLoop\LoopInterface'); $adapter = new Adapter($loop, [ 'pool' => [ 'class' => 'React\Tests\Filesystem\ChildProcess\SingletonPoolStub', diff --git a/tests/FilesystemTest.php b/tests/FilesystemTest.php index 5a7ea944..d0c0af03 100644 --- a/tests/FilesystemTest.php +++ b/tests/FilesystemTest.php @@ -12,7 +12,7 @@ public function testCreate() { $this->assertInstanceOf( 'React\Filesystem\Filesystem', - Filesystem::create($this->getMock('React\EventLoop\LoopInterface'), [ + Filesystem::create($this->createMock('React\EventLoop\LoopInterface'), [ 'pool' => [ 'class' => 'WyriHaximus\React\ChildProcess\Pool\Pool\Dummy', ], @@ -44,7 +44,7 @@ public function testFactory() public function testFile() { - $file = Filesystem::create($this->getMock('React\EventLoop\LoopInterface'), [ + $file = Filesystem::create($this->createMock('React\EventLoop\LoopInterface'), [ 'pool' => [ 'class' => 'WyriHaximus\React\ChildProcess\Pool\Pool\Dummy', ], @@ -55,7 +55,7 @@ public function testFile() public function testDir() { - $directory = Filesystem::create($this->getMock('React\EventLoop\LoopInterface'), [ + $directory = Filesystem::create($this->createMock('React\EventLoop\LoopInterface'), [ 'pool' => [ 'class' => 'WyriHaximus\React\ChildProcess\Pool\Pool\Dummy', ], diff --git a/tests/FlagResolverTest.php b/tests/FlagResolverTest.php index 9d4b03ab..2b800e7c 100644 --- a/tests/FlagResolverTest.php +++ b/tests/FlagResolverTest.php @@ -7,7 +7,7 @@ class FlagResolverTest extends TestCase public function testResolve() { - $resolver = $this->getMock('React\Filesystem\FlagResolver', [ + $resolver = $this->createMock('React\Filesystem\FlagResolver', [ 'defaultFlags', 'flagMapping', ]); diff --git a/tests/Node/DirectoryTest.php b/tests/Node/DirectoryTest.php index 34a8c8a4..9a0d5bf8 100644 --- a/tests/Node/DirectoryTest.php +++ b/tests/Node/DirectoryTest.php @@ -41,7 +41,7 @@ public function testGetPath() public function testLs() { $path = '/home/foo/bar'; - $loop = $this->getMock('React\EventLoop\LoopInterface'); + $loop = $this->createMock('React\EventLoop\LoopInterface'); $filesystem = $this->mockAdapter($loop); @@ -62,11 +62,11 @@ public function testLs() public function testLsStream() { $path = '/home/foo/bar'; - $loop = $this->getMock('React\EventLoop\LoopInterface'); + $loop = $this->createMock('React\EventLoop\LoopInterface'); $filesystem = $this->mockAdapter($loop); - $lsStream = $this->getMock('React\Filesystem\ObjectStream'); + $lsStream = $this->createMock('React\Filesystem\ObjectStream'); $filesystem ->expects($this->once()) @@ -125,7 +125,7 @@ public function testRemove() { $path = 'foo.bar'; $filesystem = $this->mockAdapter(); - $promise = $this->getMock('React\Promise\PromiseInterface'); + $promise = $this->createMock('React\Promise\PromiseInterface'); $filesystem ->expects($this->once()) @@ -139,11 +139,11 @@ public function testRemove() public function testSize() { $path = '/home/foo/bar'; - $loop = $this->getMock('React\EventLoop\LoopInterface'); + $loop = $this->createMock('React\EventLoop\LoopInterface'); $filesystem = $this->mockAdapter($loop); - $lsPromise = $this->getMock('React\Promise\PromiseInterface', [ + $lsPromise = $this->createMock('React\Promise\PromiseInterface', [ 'then', ]); @@ -156,7 +156,7 @@ public function testSize() })) ; - $directory = $this->getMock('React\Filesystem\Node\Directory', [ + $directory = $this->createMock('React\Filesystem\Node\Directory', [ 'ls', 'processSizeContents', ], [ @@ -175,7 +175,7 @@ public function testSize() ->expects($this->once()) ->method('processSizeContents') ->with('foo.bar', $this->isType('boolean')) - ->will($this->returnValue($this->getMock('React\Promise\PromiseInterface'))) + ->will($this->returnValue($this->createMock('React\Promise\PromiseInterface'))) ; $this->assertInstanceOf('React\Promise\PromiseInterface', $directory->size()); @@ -185,16 +185,16 @@ public function testChmodRecursive() { $filesystem = $this->mockAdapter(); - $recursiveInvoker = $this->getMock('React\Filesystem\Node\RecursiveInvoker', [ + $recursiveInvoker = $this->createMock('React\Filesystem\Node\RecursiveInvoker', [ 'execute', ], [ - $this->getMock('React\Filesystem\Node\DirectoryInterface', [], [ + $this->createMock('React\Filesystem\Node\DirectoryInterface', [], [ 'foo/bar/', Filesystem::createFromAdapter($filesystem), ]), ]); - $promise = $this->getMock('React\Promise\PromiseInterface'); + $promise = $this->createMock('React\Promise\PromiseInterface'); $recursiveInvoker ->expects($this->once()) @@ -210,16 +210,16 @@ public function testChownRecursive() { $filesystem = $this->mockAdapter(); - $recursiveInvoker = $this->getMock('React\Filesystem\Node\RecursiveInvoker', [ + $recursiveInvoker = $this->createMock('React\Filesystem\Node\RecursiveInvoker', [ 'execute', ], [ - $this->getMock('React\Filesystem\Node\DirectoryInterface', [], [ + $this->createMock('React\Filesystem\Node\DirectoryInterface', [], [ 'foo/bar/', Filesystem::createFromAdapter($filesystem), ]), ]); - $promise = $this->getMock('React\Promise\PromiseInterface'); + $promise = $this->createMock('React\Promise\PromiseInterface'); $recursiveInvoker ->expects($this->once()) @@ -235,16 +235,16 @@ public function testRemoveRecursive() { $filesystem = $this->mockAdapter(); - $recursiveInvoker = $this->getMock('React\Filesystem\Node\RecursiveInvoker', [ + $recursiveInvoker = $this->createMock('React\Filesystem\Node\RecursiveInvoker', [ 'execute', ], [ - $this->getMock('React\Filesystem\Node\DirectoryInterface', [], [ + $this->createMock('React\Filesystem\Node\DirectoryInterface', [], [ 'foo/bar/', Filesystem::createFromAdapter($filesystem), ]), ]); - $promise = $this->getMock('React\Promise\PromiseInterface'); + $promise = $this->createMock('React\Promise\PromiseInterface'); $recursiveInvoker ->expects($this->once()) @@ -260,7 +260,7 @@ public function testCopy() { $filesystem = $this->mockAdapter(); - $directoryFrom = $this->getMock('React\Filesystem\Node\Directory', [ + $directoryFrom = $this->createMock('React\Filesystem\Node\Directory', [ 'copyStreaming', ], [ 'foo.bar', @@ -338,7 +338,7 @@ public function testCopyStreamingABC() ->will($this->returnValue(new FulfilledPromise())) ; - $directoryFrom = $this->getMock('React\Filesystem\Node\Directory', [ + $directoryFrom = $this->createMock('React\Filesystem\Node\Directory', [ 'lsStreaming', ], [ 'foo.bar', @@ -358,7 +358,7 @@ public function testCopyStreamingABC() $returnedStream = $directoryFrom->copyStreaming($directoryTo); $this->assertInstanceOf('React\Filesystem\ObjectStream', $returnedStream); - $file = $this->getMock('React\Filesystem\Node\File', [ + $file = $this->createMock('React\Filesystem\Node\File', [ 'copyStreaming', ], [ 'foo.bar', @@ -378,7 +378,7 @@ public function testCopyStreamingABC() $file, ]); - $directory = $this->getMock('React\Filesystem\Node\Directory', [ + $directory = $this->createMock('React\Filesystem\Node\Directory', [ 'copyStreaming', ], [ 'foo.bar', diff --git a/tests/Node/FileTest.php b/tests/Node/FileTest.php index 1d0fedbf..a7d7688d 100644 --- a/tests/Node/FileTest.php +++ b/tests/Node/FileTest.php @@ -43,7 +43,7 @@ public function testRemove() { $path = 'foo.bar'; $filesystem = $this->mockAdapter(); - $promise = $this->getMock('React\Promise\PromiseInterface'); + $promise = $this->createMock('React\Promise\PromiseInterface'); $filesystem ->expects($this->once()) @@ -78,7 +78,7 @@ public function testExists() $path = 'foo.bar'; $filesystem = $this->mockAdapter(); - $file = $this->getMock('React\Filesystem\Node\File', [ + $file = $this->createMock('React\Filesystem\Node\File', [ 'stat', ], [ $path, @@ -102,7 +102,7 @@ public function testDoesntExists() $path = 'foo.bar'; $filesystem = $this->mockAdapter(); - $file = $this->getMock('React\Filesystem\Node\File', [ + $file = $this->createMock('React\Filesystem\Node\File', [ 'stat', ], [ $path, @@ -348,7 +348,7 @@ public function testTouch() ->expects($this->once()) ->method('touch') ->with($path) - ->will($this->returnValue($this->getMock('React\Promise\PromiseInterface'))) + ->will($this->returnValue($this->createMock('React\Promise\PromiseInterface'))) ; $this->assertInstanceOf('React\Promise\PromiseInterface', (new File($path, Filesystem::createFromAdapter($filesystem)))->touch()); @@ -358,7 +358,7 @@ public function testCopy() { $filesystem = $this->mockAdapter(); - $fileFrom = $this->getMock('React\Filesystem\Node\File', [ + $fileFrom = $this->createMock('React\Filesystem\Node\File', [ 'copyStreaming', ], [ 'foo.bar', @@ -392,7 +392,7 @@ public function testCopyDirectory() { $filesystem = $this->mockAdapter(); - $file = $this->getMock('React\Filesystem\Node\File', [ + $file = $this->createMock('React\Filesystem\Node\File', [ 'copyToFile', ], [ 'foo.bar', diff --git a/tests/Node/RecursiveInvokerTest.php b/tests/Node/RecursiveInvokerTest.php index f04c9c38..7b4e93ae 100644 --- a/tests/Node/RecursiveInvokerTest.php +++ b/tests/Node/RecursiveInvokerTest.php @@ -14,7 +14,7 @@ public function testExecute() { $filesystem = $this->mockAdapter(); - $node = $this->getMock('React\Filesystem\Node\Directory', [ + $node = $this->createMock('React\Filesystem\Node\Directory', [ 'ls', 'chmod', ], [ @@ -22,7 +22,7 @@ public function testExecute() Filesystem::createFromAdapter($filesystem), ]); - $promise = $this->getMock('React\Promise\PromiseInterface'); + $promise = $this->createMock('React\Promise\PromiseInterface'); $node ->expects($this->once()) @@ -31,7 +31,7 @@ public function testExecute() ->will($this->returnValue($promise)) ; - $fileDent = $this->getMock('React\Filesystem\Node\File', [ + $fileDent = $this->createMock('React\Filesystem\Node\File', [ 'chmod', ], [ 'foo', @@ -45,7 +45,7 @@ public function testExecute() ->will($this->returnValue(new FulfilledPromise())) ; - $directoryDent = $this->getMock('React\Filesystem\Node\Directory', [ + $directoryDent = $this->createMock('React\Filesystem\Node\Directory', [ 'chmodRecursive', ], [ 'foo', @@ -59,7 +59,7 @@ public function testExecute() ->will($this->returnValue(new FulfilledPromise())) ; - $finalPromise = $this->getMock('React\Promise\PromiseInterface'); + $finalPromise = $this->createMock('React\Promise\PromiseInterface'); $node ->expects($this->once()) diff --git a/tests/ObjectStreamSinkTest.php b/tests/ObjectStreamSinkTest.php index efb0dd4d..e74b5f16 100644 --- a/tests/ObjectStreamSinkTest.php +++ b/tests/ObjectStreamSinkTest.php @@ -9,7 +9,7 @@ class ObjectStreamSinkTest extends TestCase { public function testSink() { - $node = $this->getMock('React\Filesystem\Node\NodeInterface'); + $node = $this->createMock('React\Filesystem\Node\NodeInterface'); $stream = new ObjectStream(); $sink = ObjectStreamSink::promise($stream); $this->assertInstanceOf('React\Promise\PromiseInterface', $sink); diff --git a/tests/ObjectStreamTest.php b/tests/ObjectStreamTest.php index 164cfe42..e47ee93c 100644 --- a/tests/ObjectStreamTest.php +++ b/tests/ObjectStreamTest.php @@ -9,7 +9,7 @@ class ObjectStreamTest extends TestCase { public function testObjectStream() { - $node = $this->getMock('React\Filesystem\Node\NodeInterface'); + $node = $this->createMock('React\Filesystem\Node\NodeInterface'); $stream = new ObjectStream(); $this->assertTrue($stream->isWritable()); diff --git a/tests/Stream/ReadableStreamTest.php b/tests/Stream/ReadableStreamTest.php index 9aded959..39e7a0e7 100644 --- a/tests/Stream/ReadableStreamTest.php +++ b/tests/Stream/ReadableStreamTest.php @@ -42,7 +42,7 @@ public function testConstruct($className) ]))) ; - $mock = $this->getMock($className, [ + $mock = $this->createMock($className, [ 'readChunk', ], [ $path, @@ -74,7 +74,7 @@ public function testResume($className) ]))) ; - $mock = $this->getMock($className, [ + $mock = $this->createMock($className, [ 'readChunk', ], [ $path, @@ -106,7 +106,7 @@ public function testClose($className, $stat) ; } - $promise = $this->getMock('React\Promise\PromiseInterface', [ + $promise = $this->createMock('React\Promise\PromiseInterface', [ 'then', ]); @@ -126,7 +126,7 @@ public function testClose($className, $stat) ->will($this->returnValue($promise)) ; - $stream = $this->getMock($className, [ + $stream = $this->createMock($className, [ 'emit', 'removeAllListeners', ], [ @@ -214,7 +214,7 @@ public function testReadChunk($className, $stat) $path = 'foo.bar'; $fileDescriptor = '0123456789abcdef'; - $readPromise = $this->getMock('React\Promise\PromiseInterface', [ + $readPromise = $this->createMock('React\Promise\PromiseInterface', [ 'then', ]); @@ -259,7 +259,7 @@ public function testReadChunk($className, $stat) ->will($this->returnValue(new FulfilledPromise())) ; - $mock = $this->getMock($className, [ + $mock = $this->createMock($className, [ 'isReadable', 'emit', ], [ diff --git a/tests/Stream/WritableStreamTest.php b/tests/Stream/WritableStreamTest.php index 3b732972..0d53f74e 100644 --- a/tests/Stream/WritableStreamTest.php +++ b/tests/Stream/WritableStreamTest.php @@ -98,7 +98,7 @@ public function testIsNotWritable($className) public function testEnd($className) { $data = 'iahbfeq'; - $stream = $this->getMock($className, [ + $stream = $this->createMock($className, [ 'write', 'close', ], [ @@ -127,7 +127,7 @@ public function testEnd($className) */ public function testEndNoWrite($className) { - $stream = $this->getMock($className, [ + $stream = $this->createMock($className, [ 'write', 'close', ], [ @@ -162,7 +162,7 @@ public function testClose($className) $filesystem = $this->mockAdapter(); - $promise = $this->getMock('React\Promise\PromiseInterface', [ + $promise = $this->createMock('React\Promise\PromiseInterface', [ 'then', ]); @@ -182,7 +182,7 @@ public function testClose($className) ->will($this->returnValue($promise)) ; - $stream = $this->getMock($className, [ + $stream = $this->createMock($className, [ 'emit', 'removeAllListeners', ], [ diff --git a/tests/TestCase.php b/tests/TestCase.php index 06b973cb..3867fd77 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -18,10 +18,10 @@ class TestCase extends PHPUnitTestCase protected function mockAdapter(LoopInterface $loop = null) { if ($loop === null) { - $loop = $this->getMock('React\EventLoop\LoopInterface'); + $loop = $this->createMock('React\EventLoop\LoopInterface'); } - $mock = $this->getMock('React\Filesystem\AdapterInterface', [ + $mock = $this->createMock('React\Filesystem\AdapterInterface', [ '__construct', 'getLoop', 'getFilesystem',