Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / behat / gherkin / tests / Behat / Gherkin / Cache / MemoryCacheTest.php
diff --git a/vendor/behat/gherkin/tests/Behat/Gherkin/Cache/MemoryCacheTest.php b/vendor/behat/gherkin/tests/Behat/Gherkin/Cache/MemoryCacheTest.php
deleted file mode 100644 (file)
index a0bb6c8..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-
-namespace Tests\Behat\Gherkin\Cache;
-
-use Behat\Gherkin\Cache\MemoryCache;
-use Behat\Gherkin\Node\FeatureNode;
-use Behat\Gherkin\Node\ScenarioNode;
-
-class MemoryCacheTest extends \PHPUnit_Framework_TestCase
-{
-    private $cache;
-
-    public function testIsFreshWhenThereIsNoFile()
-    {
-        $this->assertFalse($this->cache->isFresh('unexisting', time() + 100));
-    }
-
-    public function testIsFreshOnFreshFile()
-    {
-        $feature = new FeatureNode(null, null, array(), null, array(), null, null, null, null);
-
-        $this->cache->write('some_path', $feature);
-
-        $this->assertFalse($this->cache->isFresh('some_path', time() + 100));
-    }
-
-    public function testIsFreshOnOutdated()
-    {
-        $feature = new FeatureNode(null, null, array(), null, array(), null, null, null, null);
-
-        $this->cache->write('some_path', $feature);
-
-        $this->assertTrue($this->cache->isFresh('some_path', time() - 100));
-    }
-
-    public function testCacheAndRead()
-    {
-        $scenarios = array(new ScenarioNode('Some scenario', array(), array(), null, null));
-        $feature = new FeatureNode('Some feature', 'some description', array(), null, $scenarios, null, null, null, null);
-
-        $this->cache->write('some_feature', $feature);
-        $featureRead = $this->cache->read('some_feature');
-
-        $this->assertEquals($feature, $featureRead);
-    }
-
-    protected function setUp()
-    {
-        $this->cache = new MemoryCache();
-    }
-}