/** * @dataProvider invalidTitleProvider * @expectedException \InvalidArgumentException */ public function testInvalidTitles($title) { $applicant = new Applicant(); $this->assertNull($applicant->getTitle()); $applicant->setTitle($title); }