public function testRemoveOption() { $options = array('foo' => 'bar'); $decorator = new Decorator($options); $removed = $decorator->removeOption('foo'); $actual = $decorator->getOption('foo'); $this->assertSame('bar', $removed); $this->assertSame(null, $actual); }