Skip to content

Commit f24c727

Browse files
committed
Improve test name sanitazation
1 parent 53e18e3 commit f24c727

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)