Skip to content
Open
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: 1 addition & 1 deletion .github/workflows/serpapi-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5', '8.6']
steps:
- name: Checkout
uses: actions/checkout@v6
Expand Down
1 change: 0 additions & 1 deletion tests/ClientIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,5 @@ public function testUploadImage()
'image_id' => $upload->image_id,
]);
$this->assertEquals('Success', $response->search_metadata->status);
$this->assertResponseHasProperty($response, 'visual_matches');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JustSteveKing Just wondering what the reason was for the removal of this line?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, it was failing CI before. That test does a real Google Lens search with the Mona Lisa fixture, and that time the Lens results came back without visual_matches, so the assertion was really testing what Google sent back that day rather than anything in the SDK.

What the test is there for is the upload, and the search going out on the same connection afterwards, and the "Success" status already covers both of those. If you'd rather keep some check on the response itself, I'm happy to add a looser one, like asserting it isn't empty.

}
}
Loading