From 4d1f9bf84da2828fdd381e3c7beb4fccecb20c0b Mon Sep 17 00:00:00 2001 From: Rakdar Date: Tue, 1 Aug 2017 22:48:24 +0200 Subject: [PATCH 1/2] Adding PHPUnit with updated bootstrapping --- composer.json | 3 ++- tests/bootstrap.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 927a178..c7d9a38 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,8 @@ "clue/stream-filter": "~1.3" }, "require-dev": { - "react/event-loop": "~0.4.0|~0.3.0" + "react/event-loop": "~0.4.0|~0.3.0", + "phpunit/phpunit": "^5.0" }, "suggest": { "ext-zlib": "Requires ext-zlib extension" diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 73b4462..3de4425 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -42,7 +42,7 @@ protected function expectCallableNever() */ protected function createCallableMock() { - return $this->getMock('CallableStub'); + return $this->createMock('CallableStub'); } } From 466e26377f15e218600cf32daac9f4aaf5449b58 Mon Sep 17 00:00:00 2001 From: Rakdar Date: Tue, 1 Aug 2017 22:50:04 +0200 Subject: [PATCH 2/2] Adding react/stream v0.5 to composer --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c7d9a38..39ccf2c 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ ], "require": { "php": ">=5.3", - "react/stream": "~0.4.3", + "react/stream": "^0.5 || ~0.4.3", "clue/stream-filter": "~1.3" }, "require-dev": {