@@ -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