/** @test */ public function itShouldGetConstraints() { $route = new Route('/', 'action', null, null, null, $const = ['foo' => 'bar']); $this->assertSame($const, $route->getConstraints()); $this->assertSame('bar', $route->getConstraint('foo')); }