Code Duplication    Length = 8-9 lines in 2 locations

Tests/Gimme/Context/ContextTest.php 2 locations

@@ 41-48 (lines=8) @@
38
        self::assertCount(1, $this->context->getAvailableConfigs());
39
    }
40
41
    public function testAddingNewConfiguration()
42
    {
43
        $this->context = new Context(new EventDispatcher(), new ArrayCache());
44
        $configuration = $this->context->addNewConfig(__DIR__.'/../../Twig/Node/Resources/meta/article.yml');
45
46
        self::assertCount(1, $this->context->getAvailableConfigs());
47
        self::assertEquals($this->context->getAvailableConfigs()[Article::class], $configuration);
48
    }
49
50
    public function testAddingNewMeta()
51
    {
@@ 50-58 (lines=9) @@
47
        self::assertEquals($this->context->getAvailableConfigs()[Article::class], $configuration);
48
    }
49
50
    public function testAddingNewMeta()
51
    {
52
        $this->context = new Context(new EventDispatcher(), new ArrayCache(), __DIR__.'/../../Twig/Node/Resources/meta/');
53
        $meta = $this->context->getMetaForValue(new Article());
54
        $this->context->registerMeta($meta);
55
56
        self::assertInstanceOf(Meta::class, $this->context->article);
57
        self::assertCount(1, $this->context->getRegisteredMeta());
58
    }
59
60
    public function testIfIsSupported()
61
    {