File: skip_scrapbook_test_if_not_installed.patch

package info (click to toggle)
matthiasmullie-minify 1.3.73-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,140 kB
  • sloc: php: 3,198; javascript: 2,083; makefile: 38; xml: 27; sh: 6
file content (12 lines) | stat: -rw-r--r-- 401 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
--- a/tests/JS/AbstractTest.php
+++ b/tests/JS/AbstractTest.php
@@ -211,6 +211,9 @@ class AbstractTest extends TestCase
 
     public function testCache()
     {
+        if (!class_exists('MemoryStore')) {
+            $this->markTestSkipped('MattahiasMullie\\Scrapbook not loaded.');
+        }
         $path = __DIR__ . '/sample/source/script1.js';
         $content = file_get_contents($path);