GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(docs): use the IDResponse model name from API 1.48 · docker-php/docker-php@ca82f41

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tests
    • DocumentationExamplesTest.php
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tests/DocumentationExamplesTest.php‎

Copy file name to clipboardExpand all lines: tests/DocumentationExamplesTest.php
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,11 @@ public function testExecCreatesAndStartsWithConsistentTtySettings(): void
285285
public function testExecChecksTheCommandExitCode(): void
286286
{
287287
$client = $this->client(static fn () => new Response(200, ['Content-Type' => 'application/json'], '{"Running":false,"ExitCode":7}'));
288-
$exec = new \Docker\API\Model\IdResponse();
288+
// API 1.48 renamed IdResponse to IDResponse; class names are case-sensitive on Linux.
289+
$model = is_file(\dirname((new \ReflectionClass(\Docker\API\Client::class))->getFileName()).'/Model/IDResponse.php')
290+
? 'Docker\\API\\Model\\IDResponse'
291+
: 'Docker\\API\\Model\\IdResponse';
292+
$exec = new $model();
289293
$exec->setId('example-exec');
290294
$this->expectException(\RuntimeException::class);
291295
$this->expectExceptionMessage('exit status 7');

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.