/** * Test that speaker info is validated correctly * * @test * @param string $speakerBio * @param boolean $expectedResponse * @dataProvider speakerTextProvider */ public function speakerBioValidatedCorrectly($speakerBio, $expectedResponse) { $data['speaker_bio'] = $speakerBio; $form = new \OpenCFP\Http\Form\SignupForm($data, $this->purifier); $form->sanitize(); $this->assertEquals($expectedResponse, $form->validateSpeakerBio(), "Speaker bio was not validated as expected"); }