diff --git a/tests/ApiDefinitionTest.php b/tests/ApiDefinitionTest.php index 9cdf0896..c1dfba6f 100644 --- a/tests/ApiDefinitionTest.php +++ b/tests/ApiDefinitionTest.php @@ -17,6 +17,7 @@ use Raml\Types\TypeValidationError; use Raml\Types\UnionType; use Raml\ValidatorInterface; +use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; class ApiDefinitionTest extends TestCase @@ -85,8 +86,8 @@ public function shouldReturnFullResourcesForRamlFileWithSymfonyFormatter() $this->assertEquals($routeFormatter, $routes); $this->assertCount(4, $routeFormatter->getRoutes()); - $this->assertInstanceOf('\Symfony\Component\Routing\RouteCollection', $routeFormatter->getRoutes()); - $this->assertInstanceOf('\Symfony\Component\Routing\Route', $routeFormatter->getRoutes()->get('GET /songs/')); + $this->assertInstanceOf(RouteCollection::class, $routeFormatter->getRoutes()); + $this->assertInstanceOf(Route::class, $routeFormatter->getRoutes()->get('GET /songs/')); $this->assertEquals(['http'], $routeFormatter->getRoutes()->get('GET /songs/')->getSchemes()); } diff --git a/tests/XmlSchemaTest.php b/tests/XmlSchemaTest.php index 3800a564..6367b42d 100644 --- a/tests/XmlSchemaTest.php +++ b/tests/XmlSchemaTest.php @@ -66,7 +66,7 @@ private function getSchema() */ public function shouldReturnXmlSchemeDefinition() { - $this->assertInstanceOf('Raml\Schema\Definition\XmlSchemaDefinition', $this->getSchema()); + $this->assertInstanceOf(XmlSchemaDefinition::class, $this->getSchema()); } /**