Esempio n. 1
0
 public function testLazyPropps()
 {
     $response = 'response';
     $callable = function () use($response) {
         return $response;
     };
     $properties = new Properties();
     $properties->set('test', $callable);
     $this->assertEquals('response', $properties->get('test'));
     $cachedResponse = $response;
     $this->assertEquals($cachedResponse, $properties->get('test'));
 }