public function testConstructorThrowsExceptionIfEmptyStringGiven() { $this->expectException(EmptyPhpSourceCode::class); new StringSourceLocator(''); }