Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/Subscribers/AttributeResolverTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ private function getTestCaseCassetteParameters(string $test): ?TestCaseParameter

private function parseMethod(string $test): TestMethodInfo
{
$test = explode(" ", $test)[0];

$methoDetails = explode("#", $test);
return new TestMethodInfo(
method: $methoDetails[0],
Expand Down
1 change: 1 addition & 0 deletions tests/AttributeDeclaredOnMethodsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@ public static function namedUrls(): iterable
{
yield 'example.com' => ["https://example.com"];
yield 'example.org' => ["https://example.org"];
yield 'test case with spaces' => ["https://example.org"];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-
request:
method: GET
url: 'https://example.org'
headers:
Host: example.org
response:
status:
code: 200
message: ''
headers:
age: '331432'
cache-control: max-age=604800
content-type: 'text/html; charset=UTF-8'
date: 'Sun, 12 Mar 2023 10:17:02 GMT'
etag: '"3147526947+ident"'
expires: 'Sun, 19 Mar 2023 10:17:02 GMT'
last-modified: 'Thu, 17 Oct 2019 07:18:26 GMT'
server: 'ECS (dcb/7F83)'
vary: Accept-Encoding
x-cache: HIT
content-length: '1256'
body: "Example body for \"https://example.org\""
index: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-
request:
method: GET
url: 'https://example.org'
headers:
Host: example.org
response:
status:
code: 200
message: ''
headers:
age: '331432'
cache-control: max-age=604800
content-type: 'text/html; charset=UTF-8'
date: 'Sun, 12 Mar 2023 10:17:02 GMT'
etag: '"3147526947+ident"'
expires: 'Sun, 19 Mar 2023 10:17:02 GMT'
last-modified: 'Thu, 17 Oct 2019 07:18:26 GMT'
server: 'ECS (dcb/7F83)'
vary: Accept-Encoding
x-cache: HIT
content-length: '1256'
body: "Example body for \"https://example.org\""
index: 0