/** * @dataProvider getOptionsFixture */ public function testCreateWithOptions(array $options) { $text_attribute = new TextAttribute(self::ATTR_NAME, $this->getTypeMock(), $options); $this->assertEquals($text_attribute->getName(), self::ATTR_NAME); $this->assertFalse($text_attribute->hasOption('snafu_flag')); foreach ($options as $optName => $optValue) { $this->assertTrue($text_attribute->hasOption($optName)); $this->assertEquals($text_attribute->getOption($optName), $optValue); } }