public function testGetFieldMapping() { $fieldMapping = array('fieldName' => 'username', 'type' => 'string', 'columnName' => 'username', 'length' => 200, 'unique' => true, 'nullable' => false, 'declared' => 'Foo\\Bar\\User'); $filter = new FooFilter(); $filter->setOption('field_mapping', $fieldMapping); $this->assertSame($fieldMapping, $filter->getFieldMapping()); }