assertSame($ripper, Ripper::getRipper($testString)); } public function testInvalidRipper() { $this->expectException(UnknownRipperException::class); $this->expectExceptionMessage('Could not determine ripper'); Ripper::getRipper('invalid invalid invalid'); } }