title: How to unit test a method has multi inner call protected/private method by phpunit?
body: <p>I am newbie at unit test. 
  My test environment is PHPUnit on Laravel.</p>
  
  <p>I want to know how to unit test a method has multi call protected/private method by PHPUnit?</p>
  
  <p>Those protected/private method not only return expected value but also throw exception when fail.</p>
  
  <p><a href="https://gist.github.com/anonymous/a757fa84e2a7a1d724c481613f56661c" rel="nofollow">example.php</a> and <a href="https://gist.github.com/anonymous/7ffe72dedbb6cd29d4ff2e13e2bbd22b" rel="nofollow">ExampleTest.php</a>.</p>
  
  <p>The important question is :if I want to test method2 or method3 throwsexception, I need pass prev protected/private method(method1 or method1+method2), is this ok? Or any better idea?</p>