/** * @dataProvider setDependsInvalidDataProvider * @param string $depends */ public function testSetDependsInvalid($depends) { $this->setExpectedException('BuildException', 'Syntax Error: Depend attribute for target MyTarget is malformed.'); $this->target->setDepends($depends); }