Skip to content

Instantly share code, notes, and snippets.

@GeeH
Created December 17, 2014 20:50
Show Gist options
  • Save GeeH/255ba0a7863e23ea93f7 to your computer and use it in GitHub Desktop.
Save GeeH/255ba0a7863e23ea93f7 to your computer and use it in GitHub Desktop.
<?php
class MyControllerTest extends ControllerTest
{
public function setUp()
{
$this->controller('Application\Controller\IndexController');
}
public function testIndexAction()
{
$this->route('/')
->shouldDispatchAction('index')
->withQueryParameters(['foo' => 'bar'])
->andReturn('ViewModel')
->withVariables(['foo' => 'bar']);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment