Code Duplication    Length = 8-8 lines in 2 locations

spec/Service/FlashMessagesSpec.php 2 locations

@@ 40-47 (lines=8) @@
37
        $this->shouldHaveType(FlashMessages::class);
38
    }
39
40
    function it_can_set_messages_of_a_given_type(SessionDriverInterface $sessionDriver)
41
    {
42
43
        $this->set(FlashMessages::TYPE_INFO, 'Info messages')
44
            ->shouldBe($this->getWrappedObject());
45
        $sessionDriver->set('_messages_', [FlashMessages::TYPE_INFO => ['Info messages']])
46
            ->shouldHaveBeenCalled();
47
    }
48
49
    function it_cast_to_info_a_message_set_with_an_unknown_type(SessionDriverInterface $sessionDriver)
50
    {
@@ 49-56 (lines=8) @@
46
            ->shouldHaveBeenCalled();
47
    }
48
49
    function it_cast_to_info_a_message_set_with_an_unknown_type(SessionDriverInterface $sessionDriver)
50
    {
51
        $this->flush();
52
        $this->set('Some Type', 'Info messages')
53
            ->shouldBe($this->getWrappedObject());
54
        $sessionDriver->set('_messages_', [FlashMessages::TYPE_INFO => ['Info messages']])
55
            ->shouldHaveBeenCalled();
56
    }
57
58
    function it_can_retrieve_all_messages()
59
    {