public function testShrinkThrowsForInvalidInput() { $this->setExpectedException('\\InvalidArgumentException', 'Cannot cast to Bounds from input "foo".'); $math = new Math(); $math->shrink('foo', '100 meters'); }