/** * @dataProvider provideFlagKeywords * @depends testInterface * @return null */ public function testExtractKeywordContraints($str, $notNull, $primary, $new) { $expected = array('is-not-null' => $notNull, 'is-primary-key' => $primary, 'input-string' => $new); $result = $this->parser->extractKeywordConstraints($str); $this->assertFalse($this->parser->isError()); $this->assertEquals($expected, $result); }