assertNull($shm->get("foo")); $this->assertTrue($shm->set("foo", "hello")); $this->assertEquals("hello", $shm->get("foo")); $this->assertNull($shm->get("bar")); $this->assertTrue($shm->set("bar", "world")); $this->assertEquals("hello", $shm->get("foo")); $this->assertEquals("world", $shm->get("bar")); $shm->destroy(); } }