8000 Clean up test suite · reactphp/promise-timer@da85788 · GitHub
[go: up one dir, main page]

Skip to content

Commit da85788

Browse files
committed
Clean up test suite
1 parent d9c20d4 commit da85788

File tree

4 files changed

+2
-18
lines changed

4 files changed

+2
-18
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ matrix:
1616
- php: 7.3
1717
- php: 7.4
1818
- php: hhvm-3.18
19-
install: composer require phpunit/phpunit:^5 --dev --no-interaction # requires legacy phpunit
2019
allow_failures:
2120
- php: hhvm-3.18
2221

phpunit.xml.dist

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<phpunit bootstrap="vendor/autoload.php"
4-
colors="true"
5-
convertErrorsToExceptions="true"
6-
convertNoticesToExceptions="true"
7-
convertWarningsToExceptions="true"
8-
>
3+
<phpunit bootstrap="vendor/autoload.php" colors="true">
94
<testsuites>
105
<testsuite name="Promise Timer Test Suite">
116
<directory>./tests/</directory>

tests/CallableStub.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected function expectCallableNever()
4444
*/
4545
protected function createCallableMock()
4646
{
47-
return $this->getMockBuilder('React\Tests\Promise\Timer\CallableStub')->getMock();
47+
return $this->getMockBuilder('stdClass')->setMethods(array('__invoke'))->getMock();
4848
}
4949

5050
protected function expectPromiseRejected($promise)

0 commit comments

Comments
 (0)
0