public function testUpdateToken() { $tk = new DefaultToken(); $this->mapper->expects($this->once())->method('update')->with($tk); $this->tokenProvider->updateToken($tk); $this->assertEquals($this->time, $tk->getLastActivity()); }