/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage Identifier "foo" is not defined. */ public function testRawValidatesKeyIsPresent() { $barnacle = new Container(); $barnacle->raw('foo'); }