diff --git a/tests/AttributableTest.php b/tests/AttributableTest.php index 0d1603d..d2eb04c 100644 --- a/tests/AttributableTest.php +++ b/tests/AttributableTest.php @@ -40,4 +40,13 @@ public function testCall() $mock->foo('bar'); $this->assertEquals('bar', $mock->get('foo')); } + + public function testUnset() + { + $mock = new Mock(); + $mock['foo'] = 'bar'; + + unset($mock['foo']); + $this->assertFalse($mock->offsetExists('foo')); + } } diff --git a/tests/stubs/Mock.php b/tests/stubs/Mock.php index 0e9935a..104aa84 100644 --- a/tests/stubs/Mock.php +++ b/tests/stubs/Mock.php @@ -1,6 +1,6 @@