Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Test enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k committed Apr 19, 2019
1 parent b22ed44 commit d4734cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tests/ApiDefinitionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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());
}

Expand Down
2 changes: 1 addition & 1 deletion tests/XmlSchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private function getSchema()
*/
public function shouldReturnXmlSchemeDefinition()
{
$this->assertInstanceOf('Raml\Schema\Definition\XmlSchemaDefinition', $this->getSchema());
$this->assertInstanceOf(XmlSchemaDefinition::class, $this->getSchema());
}

/**
Expand Down

0 comments on commit d4734cc

Please sign in to comment.