/** * Test that using an invalid profile fails. * * @expectedException \InvalidArgumentException * @expectedExceptionMessage Unknown notification configuration "derp". */ public function testProfileInvalid() { $email = new Notification(); $email->profile('derp'); }