Code Duplication    Length = 12-13 lines in 2 locations

tests/KochTest/Cache/AbstractCacheTest.php 1 location

@@ 141-152 (lines=12) @@
138
     * @covers Koch\Cache\AbstractCache::__get
139
     * @covers Koch\Cache\AbstractCache::__unset
140
     */
141
    public function testSet()
142
    {
143
        // set
144
        $this->object->key = 'value';
145
        // isset
146
        $this->assertTrue(isset($this->object->key));
147
        // get
148
        $this->assertEquals('value', $this->object->key);
149
        // unset
150
        unset($this->object->key);
151
        $this->assertFalse(isset($this->object->key));
152
    }
153
}
154

tests/KochTest/Config/AbstractConfigTest.php 1 location

@@ 133-145 (lines=13) @@
130
     * @covers Koch\Config\AbstractConfig::__isset
131
     * @covers Koch\Config\AbstractConfig::__unset
132
     */
133
    public function test__set()
134
    {
135
        // __set
136
        $this->object->newKey = 'someValue';
137
        $this->assertEquals('someValue', $this->object->newKey);
138
139
        // __isset
140
        $this->assertTrue(isset($this->object->newKey));
141
142
        // __unset
143
        unset($this->object->newKey);
144
        $this->assertFalse(isset($this->object->newKey));
145
    }
146
147
    /**
148
     * @covers Koch\Config\AbstractConfig::offsetExists