static function getPimple() { if (!static::$pimple) { throw new \LogicException('\\Pimple\\Container not set, call init() or setPimple() before using getPimple().'); } return static::$pimple; }
/** * @covers \Pressbooks\Container::getPimple */ public function test_getPimpleException() { $this->setExpectedException('\\LogicException'); $p = Container::getPimple(); }