1]); $hash->set('b', 2); $this->assertSame(1, $hash->get('a')); $this->assertSame(2, $hash->get('b')); $this->assertSame(2, $hash->unset('b')); $this->assertSame(['a' => 1], $hash->getData()); } public function testNotFound() { $this->expectException(MadLispException::class); $this->expectExceptionMessage('hash does not contain key abc'); $hash = new Hash(); $hash->get('abc'); } }