/** * @expectedException Interop\Container\Exception\NotFoundException * @expectedExceptionMessage Item baz not found */ public function testLoadInvalidName() { $ini = <<<INI foo = bar INI; $c = new Container(); $c->loadArray(parse_ini_string($ini, true)); $c->get('baz'); }