MTimeProtectedFileStorageTest.php 681 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Drupal\Tests\Component\PhpStorage;
  3. /**
  4. * Tests the MTimeProtectedFileStorage implementation.
  5. *
  6. * @coversDefaultClass \Drupal\Component\PhpStorage\MTimeProtectedFileStorage
  7. *
  8. * @group Drupal
  9. * @group PhpStorage
  10. */
  11. class MTimeProtectedFileStorageTest extends MTimeProtectedFileStorageBase {
  12. /**
  13. * The expected test results for the security test.
  14. *
  15. * The default implementation protects against even the filemtime change so
  16. * both iterations will return FALSE.
  17. */
  18. protected $expected = [FALSE, FALSE];
  19. /**
  20. * The PHP storage class to test.
  21. */
  22. protected $storageClass = 'Drupal\Component\PhpStorage\MTimeProtectedFileStorage';
  23. }