From 4fb64a73f999b6e1fc616b14398a689e288a0466 Mon Sep 17 00:00:00 2001 From: Roman Kinyakin <1@grep.su> Date: Thu, 14 May 2015 10:47:00 +0600 Subject: [PATCH] Extend tests --- tests/AttributableTest.php | 9 +++++++++ tests/stubs/Mock.php | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) 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 @@