public function testMtimeReturnsCommitTime() { $expected_time = new \DateTime(); $this->commit_mock->shouldReceive('getCommitTime')->andReturn($expected_time); $this->assertEquals($expected_time->format('U'), $this->adapter->mtime('foo')); }