public function testBadObservationsCount() { $observations = new Observations(); $observations->add([1, 2, 3], 4); static::setExpectedException('InvalidArgumentException'); $observations->add([1, 2], 4); }