Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .travis.yml
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
language: php

php:
- 5.3
# - 5.3 # requires old distro, see below
- 5.4
- 5.5
- 5.6
- 7
- hhvm

# lock distro so new future defaults will not break the build
dist: trusty

matrix:
include:
- php: 5.3
dist: precise

sudo: false

install:
- composer install --prefer-source --no-interaction
- composer install --no-interaction

script:
- ./vendor/bin/phpunit --coverage-text
16 changes: 16 additions & 0 deletions README.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,6 +23,7 @@ provide alternate implementations.
* [Fallback get](#fallback-get)
* [Fallback-get-and-set](#fallback-get-and-set)
* [Install](#install)
* [Tests](#tests)
* [License](#license)

## Usage
Expand DownExpand Up@@ -150,6 +151,21 @@ $ composer require "react/cache:~0.4.0|~0.3.0"

More details and upgrade guides can be found in the [CHANGELOG](CHANGELOG.md).

## Tests

To run the test suite, you first need to clone this repo and then install all
dependencies [through Composer](https://getcomposer.org):

```bash
$ composer install
```

To run the test suite, go to the project root and run:

```bash
$ php vendor/bin/phpunit
```

## License

MIT, see [LICENSE file](LICENSE).
2 changes: 1 addition & 1 deletion composer.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -14,6 +14,6 @@
"psr-4":{"React\\Tests\\Cache\\": "tests/"}
},
"require-dev":{
"phpunit/phpunit": "~4.8"
"phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35"
}
}
6 changes: 4 additions & 2 deletions tests/TestCase.php
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,7 +2,9 @@

namespace React\Tests\Cache;

class TestCase extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase as BaseTestCase;

class TestCase extends BaseTestCase
{
protected function expectCallableExactly($amount)
{
Expand DownExpand Up@@ -36,6 +38,6 @@ protected function expectCallableNever()

protected function createCallableMock()
{
return $this->getMock('React\Tests\Cache\CallableStub');
return $this->getMockBuilder('React\Tests\Cache\CallableStub')->getMock();
}
}