Example #1
0
 public function testProtect()
 {
     $pimple = new Project($this->getMockedPath());
     $callback = function () {
         return 'foo';
     };
     $pimple['protected'] = $pimple->protect($callback);
     $this->assertSame($callback, $pimple['protected']);
 }