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

Test enhancement #149

Merged
merged 2 commits into from
May 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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