public function testFormattingDatesBasedOnCOnfigTwo() { $stub = $this->getMock("COnfig"); $stub->expects($this->any())->method('get')->with('date.format')->will($this->returnValue('c')); $formatter = new DateFormatter($stub); $this->assertEquals($formatter->getFormattedDate(0), '1970-01-01T00:00:00+00:00'); }