Skip to content

Commit

Permalink
tweaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sobstel committed Feb 24, 2024
1 parent 2dd22bb commit fb003b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ jobs:
- uses: supercharge/redis-github-action@1.4.0
- uses: actions/checkout@v2
- uses: php-actions/composer@v5
- name: phpunit (php latest)
uses: php-actions/phpunit@v3
with:
configuration: ./phpunit.xml
php_extensions: memcache memcached
- name: phpunit (php 7.4)
uses: php-actions/phpunit@v3
with:
Expand Down Expand Up @@ -45,3 +40,9 @@ jobs:
configuration: ./phpunit.xml
php_extensions: memcache memcached
php_version: 8.3
- name: phpunit (php latest)
uses: php-actions/phpunit@v3
with:
configuration: ./phpunit.xml
php_extensions: memcache memcached
php_version: latest
4 changes: 2 additions & 2 deletions tests/src/CacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public function testServesStaleValueIfOtherProcessIsGeneratingContent()
$key = "masche14";

$lockManagerMock = $this->createLockManagerMock();
$lockManagerMock->method('acquire')->with($this->equalTo($key))->will($this->returnValue(true));
$lockManagerMock->method('release')->with($this->equalTo($key))->will($this->returnValue(true));
$lockManagerMock->method('acquire')->with($this->equalTo($key))->willReturn(true);
$lockManagerMock->method('release')->with($this->equalTo($key))->willReturn(true);

$cache = new Cache(new MockStore, $lockManagerMock);

Expand Down

0 comments on commit fb003b3

Please sign in to comment.