public function testKeys() { $this->contractor->expects($this->any())->method('getDefaultOptions')->will($this->returnValue(array())); $this->formMapper->add('foo', 'bar')->add('baz', 'foobaz'); $this->assertSame(array('foo', 'baz'), $this->formMapper->keys()); }