Created
July 29, 2013 07:59
-
-
Save oaltman/6102760 to your computer and use it in GitHub Desktop.
Mock
This file contains 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
public function testFormattingDatesBasedOnConfig() | |
{ | |
$stub = $this->getMock('Henry\Config',array('get')); | |
$stub->expects($this->any()) | |
->method('get') | |
->will($this->returnValue('c')); | |
$formatter = new DateFormatter($stub); | |
$this->assertEquals('c',$stub->get('param')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment