Skip to content

Commit 9980fb5

Browse files
authored
Merge pull request #141 from php-api-clients/improve-test-name-sanitization
Improve test name sanitazation
2 parents 53e18e3 + f24c727 commit 9980fb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator/OperationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private static function createMethod(BuilderFactory $factory, \ApiClients\Tools\
9595
),
9696
);
9797

98-
return $factory->method('httpCode_' . $response->code . ($request === null ? '' : '_requestContentType_' . str_replace(['-', '/', '+', '.'], '_', $request->contentType)) . '_responseContentType_' . str_replace(['-', '/', '+', '.'], '_', $response->contentType))->makePublic()->setDocComment(
98+
return $factory->method('httpCode_' . $response->code . ($request === null ? '' : '_requestContentType_' . preg_replace('/[^a-zA-Z0-9]+/', '_', $request->contentType)) . '_responseContentType_' . preg_replace('/[^a-zA-Z0-9]+/', '_', $response->contentType))->makePublic()->setDocComment(
9999
new Doc(implode(PHP_EOL, [
100100
'/**',
101101
' * @test',

0 commit comments

Comments
 (0)