/** * @covers ::setSound * * @expectedException \InvalidArgumentException * @expectedExceptionMessage Sound 'foo' is not supported */ public function testUnsupportedSound() { $boxcar = new Boxcar('secrets'); $boxcar->setSound('foo'); }
/** * @covers ::setSound * * @expectedException \InvalidArgumentException * @expectedExceptionMessage Sound 'foo' is not supported */ public function testUnsupportedSound() { $boxcar = new Boxcar('secrets'); $boxcar->setSound('foo'); }