for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SIL\Tests;
use SIL\CacheKeyProvider;
/**
* @covers \SIL\CacheKeyProvider
* @group semantic-interlanguage-links
*
* @license GNU GPL v2+
* @since 1.0
* @author mwjames
*/
class CacheKeyProviderTest extends \PHPUnit_Framework_TestCase {
public function testCanConstruct() {
$this->assertInstanceOf(
'\SIL\CacheKeyProvider',
new CacheKeyProvider( 'foo' )
);
}
public function testGetSiteCacheKey() {
$instance = new CacheKeyProvider( 'foo' );
$this->assertSame(
$instance->getSiteCacheKey( 'foo' ),
$instance->getSiteCacheKey( 'foo' )
public function testGetPageLanguageCacheBlobKey() {
$instance->getPageLanguageCacheBlobKey( 'foo' ),
$instance->getPageLanguageCacheBlobKey( 'foo' )
public function testGetPageCacheKey() {
$instance->getPageCacheKey( 'foo', true ),
$instance->getPageCacheKey( 'foo', true )