public function testTryGetValue() { $value = null; $dictionary = new Dictionary(array('a' => 1, 'b' => 2, 'c' => 3)); $this->assertEquals(false, $dictionary->tryGetValue('d', $value)); $this->assertEquals(null, $value); $this->assertEquals(true, $dictionary->tryGetValue('b', $value)); $this->assertEquals(2, $value); }