title: how to unit testing function that doesn't return value in phpunit?
body: <p>so this is the class that i want to test. and specifically i just pick one of the function that i want to test. while var is a value returned from doing some function from classB bar is instance from classC and then do some function which pass some variables. for most of the hints/example, the function to be tested is return a value. so my question is, how to test that this particular function worked?</p>
  
  <p>thanks.</p>
  
  <pre><code>class mA extends A {
      ...
      function doSomething($foo) {
          $var = doStuffFromClassB("hallo");
          $bar = ClassC::instance();
          $bar-&gt;doStuffFromClassC($var, $foo, "world");
      }
  }
  </code></pre>