public function setFormat($format)
{
$this->format = strtolower($format);
return $this;
}
/** * @test */ public function uriForSetsFormatArgumentIfSpecified() { $expectedArguments = ['@action' => 'index', '@controller' => 'somecontroller', '@package' => 'somepackage', '@format' => 'someformat']; $this->uriBuilder->setFormat('SomeFormat'); $this->uriBuilder->uriFor('index', [], 'SomeController', 'SomePackage'); $this->assertEquals($expectedArguments, $this->uriBuilder->getLastArguments()); }