public function testSetPatchInvalid() { $this->setExpectedException('Herrera\\Version\\Exception\\InvalidNumberException', 'The version number "x" is invalid.'); $this->builder->setPatch('x'); }