forked from mmamedov/page-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement integration test suite for mmamedov#10
- Update composer dependencies - Update test cases for updated phpunit - Add more logging - Add default ttl for SimpleCache::set() method call - Implement integration test suite (guzzlehttp + symfony/process + built-in PHP web-server) - Add integration test for internal PSR-16 filesystem-based adapter (tests are failing) - Add PHP7.1 and PHP7.2 to Travis CI config - Issue-related tests added to group "issue10" and can be selected by "--group issue10" - Some tests are failing due to unpredictable error (possible race condition)
- Loading branch information
Showing
33 changed files
with
4,741 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ language: php | |
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
|
||
#script: | ||
# - phpunit -v -c phpunit.xml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* This file is part of the PageCache package. | ||
* | ||
* @author Denis Terekhov <i.am@spotman.ru> | ||
* @author Muhammed Mamedov <mm@turkmenweb.net> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace PageCache\Tests\Integration; | ||
|
||
use Cache\IntegrationTests\SimpleCacheTest; | ||
use PageCache\Storage\FileSystem\FileSystemCacheAdapter; | ||
|
||
/** | ||
* Class IntegrationPsrCacheTest | ||
* | ||
* @package PageCache\Tests\Integration | ||
*/ | ||
class IntegrationPsrCacheTest extends SimpleCacheTest | ||
{ | ||
public function createSimpleCache() | ||
{ | ||
return new FileSystemCacheAdapter( | ||
__DIR__.DIRECTORY_SEPARATOR.'cache', | ||
LOCK_EX | LOCK_NB, | ||
500 | ||
); | ||
} | ||
} |
Oops, something went wrong.