Code Duplication    Length = 13-15 lines in 2 locations

Tests/Units/StorageTestCase.php 2 locations

@@ 49-61 (lines=13) @@
46
    /**
47
     * Test has method.
48
     */
49
    public function testHas()
50
    {
51
        $this
52
            ->given($storage = $this->createStorage())
53
            ->and($user = new User('Ivan', 36, '[email protected]'))
54
            ->when($storage->set('foo', $user))
55
            ->then()
56
                ->boolean($storage->has('foo'))
57
                    ->isTrue()
58
                ->boolean($storage->has('baz'))
59
                    ->isFalse()
60
        ;
61
    }
62
63
    /**
64
     * Test remove method.
@@ 66-80 (lines=15) @@
63
    /**
64
     * Test remove method.
65
     */
66
    public function testRemove()
67
    {
68
        $this
69
            ->given($storage = $this->createStorage())
70
            ->when(
71
                $storage->set('a', 'red'),
72
                $storage->set('b', 'blue')
73
            )
74
            ->then()
75
                ->boolean($storage->remove('a'))
76
                    ->isTrue()
77
                ->boolean($storage->remove('c'))
78
                    ->isFalse()
79
        ;
80
    }
81
82
    /**
83
     * Test clear method.