Пример #1
0
 /**
  * @test
  */
 public function testMemoizeResultIsCorrect()
 {
     $memoryCache = new MemoryCache();
     $func = $memoryCache->memoize($this->testFunction);
     $this->assertEquals(3, $func(1, 2));
     $this->assertEquals(3, $func(1, 2));
 }