Skip to content

Instantly share code, notes, and snippets.

@kognate
Created January 21, 2010 14:42
Show Gist options
  • Save kognate/282845 to your computer and use it in GitHub Desktop.
Save kognate/282845 to your computer and use it in GitHub Desktop.
public funciton testLogin() {
/* in this case $this->f is a User object */
$r = new ReflectionObject($this->f);
$m = $r->getMethod('login');
$this->assertEquals(2,$m->getNumberOfParameters());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment