title: How to use call_user_func for static class method?
body: <p>The following code works fine.</p>
  
  <pre><code>LibraryTests::TestGetServer();
  </code></pre>
  
  <p>Get the array of functions in LibraryTests and run them:</p>
  
  <pre><code>$methods = get_class_methods('LibraryTests');
  foreach ($methods as $method) {
    call_user_func('LibraryTests::' . $method . '()' );
  }
  </code></pre>
  
  <p>This throws an error: <code>Warning: call_user_func(LibraryTests::TestGetServer()) [function.call-user-func]: First argument is expected to be a valid callback</code></p>
  
  <p>Here is the class that is being called:</p>
  
  <pre><code>class LibraryTests extends TestUnit {
  
      function TestGetServer() {
          TestUnit::AssertEqual(GetServer(), "localhost/");
      }
      .
      .
      .
  </code></pre>
  
  <p>How to fix?</p>
  
  <p>Working in PHP 5.2.8.</p>