<?php

namespace RAPL\Tests\Unit\Mapping;

use RAPL\RAPL\Mapping\Route;

class RouteTest extends \PHPUnit_Framework_TestCase
{
    public function testRoute()
    {
        $pattern   = 'foo/bar/{id}';
        $envelopes = array('foo', 'bar');

        $route = new Route($pattern, $envelopes);

        $this->assertSame($pattern, $route->getPattern());
        $this->assertSame($envelopes, $route->getEnvelopes());
    }
}

Add unit test for Route class
Add unit test for Route class
