/** * @dataProvider exceptionForOnlyStringProvider * @expectedException \InvalidArgumentException * @expectedExceptionMessage Information must be a string */ public function testSetInformationWithInvalidArgument($argument) { $this->frame->setInformation($argument); }