예제 #1
0
 public function testMethod()
 {
     $object = new _MethodTesting();
     $a = f\method('a');
     $c = f\method('c');
     $cWithDE = f\method('c', 'd', 'e');
     $this->assertSame('b', $a($object));
     $this->assertSame(array(), $c($object));
     $this->assertSame(array('d', 'e'), $cWithDE($object));
 }
 /**
  * @return string
  *
  * @throws UserNotFoundException
  */
 public function getUserId($username)
 {
     $method = f\method($this->method);
     return $method($this->findUser($username));
 }