/** * @dataProvider maxLengthTypeProvider */ public function testGuessMaxLengthForConstraintWithType($type) { $constraint = new Type($type); $result = $this->guesser->guessMaxLengthForConstraint($constraint); $this->assertInstanceOf('Symfony\\Component\\Form\\Guess\\ValueGuess', $result); $this->assertNull($result->getValue()); $this->assertEquals(Guess::MEDIUM_CONFIDENCE, $result->getConfidence()); }