skip to Main Content

Memcached – Mocking a method with prophet

Assume there is a method public function updateTimestamp($sessionId, $data) { return $this->memcached->touch($sessionId, time() + $this->ttl); } that I'd like to test. Infection changes the + in time() + $this->ttl to - and all my tests are still passing. So I'd…

VIEW QUESTION
Back To Top
Search