MTimeProtectedFastFileStorageTest.php in Zircon Profile 8
Same filename and directory in other branches
Namespace
Drupal\Tests\Component\PhpStorageFile
core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFastFileStorageTest.phpView source
<?php
/**
* @file
* Contains \Drupal\Tests\Component\PhpStorage\MTimeProtectedFastFileStorageTest.
*/
namespace Drupal\Tests\Component\PhpStorage;
/**
* Tests the MTimeProtectedFastFileStorage implementation.
*
* @coversDefaultClass \Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage
*
* @group Drupal
* @group PhpStorage
*/
class MTimeProtectedFastFileStorageTest extends MTimeProtectedFileStorageBase {
/**
* The expected test results for the security test.
*
* The first iteration does not change the directory mtime so this class will
* include the hacked file on the first try but the second test will change
* the directory mtime and so on the second try the file will not be included.
*/
protected $expected = array(
TRUE,
FALSE,
);
/**
* The PHP storage class to test.
*/
protected $storageClass = 'Drupal\\Component\\PhpStorage\\MTimeProtectedFastFileStorage';
}
Classes
Name | Description |
---|---|
MTimeProtectedFastFileStorageTest | Tests the MTimeProtectedFastFileStorage implementation. |