Created
December 17, 2014 20:50
-
-
Save GeeH/255ba0a7863e23ea93f7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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