Skip to content

Commit 2f9abe1

Browse files
authored
Test with Laravel cache (#60)
* Test with Laravel cache * Added missing dependency * Enabled memcached * do not use pecl
1 parent 7c697ca commit 2f9abe1

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ env:
88
- SUITE=PHPCache
99
- SUITE=Symfony
1010
- SUITE=Stash
11+
- SUITE=MadeWithLove
1112

1213
matrix:
1314
fast_finish: true
@@ -17,6 +18,7 @@ matrix:
1718

1819
services:
1920
- redis
21+
- memcached
2022

2123
cache:
2224
directories:
@@ -27,8 +29,9 @@ before_install:
2729
- travis_retry composer self-update
2830

2931
install:
32+
- echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
3033
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
31-
- composer update
34+
- composer update --prefer-source
3235

3336
script:
3437
- phpunit --testsuite $SUITE

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
"phpunit/phpunit": "^4.0|^5.0",
3030
"cache/cache": "dev-master",
3131
"symfony/cache": "^3.1",
32+
"madewithlove/illuminate-psr-cache-bridge": "^1.0",
33+
"illuminate/cache": "^5.0",
3234
"tedivm/stash": "dev-master"
3335
},
3436
"autoload": {

phpunit.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
<testsuite name="Stash">
2424
<file>./tests/StashTest.php</file>
2525
</testsuite>
26+
27+
<testsuite name="MadeWithLove">
28+
<file>./vendor/madewithlove/illuminate-psr-cache-bridge/tests/integration/IntegrationTest.php</file>
29+
</testsuite>
2630
</testsuites>
2731

2832
<logging>

0 commit comments

Comments
 (0)