/** * Tests exception when only value is set. * * @expectedException \LogicException */ public function testIfExceptionIsThrownWhenScriptSetAndValueNotSet() { $this->agg->setScript('bar'); $this->agg->toArray(); }