Skip to content

Commit 9dfa3e8

Browse files
committed
Fix failing test 2
1 parent e8b8b2e commit 9dfa3e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/spec/PathTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,14 @@ public function testPathParametersAreArrays()
210210

211211
$result = $usersPath->validate();
212212
$this->assertTrue($result);
213-
$this->assertIsArray($usersPath->parameters);
213+
$this->assertSame(gettype($usersPath->parameters), 'array');
214214
$this->assertInstanceOf(\cebe\openapi\spec\Parameter::class, $usersPath->parameters[0]);
215215
$this->assertInstanceOf(\cebe\openapi\spec\Parameter::class, $usersPath->parameters[1]);
216216
$this->assertEquals('api-version', $usersPath->parameters[0]->name);
217217

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

0 commit comments

Comments
 (0)