diff --git a/composer.json b/composer.json index d0d5e4e..53ebcff 100644 --- a/composer.json +++ b/composer.json @@ -14,6 +14,9 @@ "psr-4": { "React\\Promise\\Stream\\" : "src/" }, "files": [ "src/functions_include.php" ] }, + "autoload-dev": { + "psr-4": { "React\\Tests\\Promise\\Stream\\": "tests/" } + }, "require": { "php": ">=5.3", "react/stream": "^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4 || ^0.3", diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 9195bac..f373698 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,6 +1,6 @@ -getMock('CallableStub'); + return $this->getMock('React\Tests\Promise\Stream\CallableStub'); } protected function expectPromiseResolve($promise) @@ -81,11 +81,3 @@ protected function expectPromiseReject($promise) return $promise; } } - -class CallableStub -{ - public function __invoke() - { - } -} - diff --git a/tests/UnwrapReadableTest.php b/tests/UnwrapReadableTest.php index a5b5268..75eb0ac 100644 --- a/tests/UnwrapReadableTest.php +++ b/tests/UnwrapReadableTest.php @@ -1,5 +1,7 @@