Skip to content

Commit e8b8b2e

Browse files
committed
Fix failing test
1 parent e02cce1 commit e8b8b2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/spec/PathTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function testPathParametersAreArrays()
204204
$this->assertTrue($result);
205205

206206
$this->assertInstanceOf(Paths::class, $openapi->paths);
207-
$this->assertIsArray($openapi->paths->getPaths());
207+
$this->assertSame(gettype($openapi->paths->getPaths()), 'array');
208208
$this->assertInstanceOf(PathItem::class, $usersPath = $openapi->paths['/v1/organizations/{organizationId}/user']);
209209
$this->assertInstanceOf(PathItem::class, $userIdPath = $openapi->paths['/v1/organizations/{organizationId}/user/{id}']);
210210

@@ -213,14 +213,14 @@ public function testPathParametersAreArrays()
213213
$this->assertIsArray($usersPath->parameters);
214214
$this->assertInstanceOf(\cebe\openapi\spec\Parameter::class, $usersPath->parameters[0]);
215215
$this->assertInstanceOf(\cebe\openapi\spec\Parameter::class, $usersPath->parameters[1]);
216-
$this->assertEquals($usersPath->parameters[0]->name, 'api-version');
216+
$this->assertEquals('api-version', $usersPath->parameters[0]->name);
217217

218218
$result = $userIdPath->validate();
219219
$this->assertTrue($result);
220220
$this->assertIsArray($userIdPath->parameters);
221221
$this->assertInstanceOf(\cebe\openapi\spec\Parameter::class, $userIdPath->parameters[0]);
222222
$this->assertInstanceOf(\cebe\openapi\spec\Parameter::class, $userIdPath->parameters[1]);
223-
$this->assertEquals($userIdPath->parameters[2]->name, 'id');
223+
$this->assertEquals('id', $userIdPath->parameters[2]->name);
224224

225225
}
226226
}

0 commit comments

Comments
 (0)