title: Dependent tests between two TestCase classes in PHPUnit
body: <p>In PHPUnit you can make one test to be depend on other test by using <code>@depends</code> annotation.
  Is it possible to make whole TestCase dependent on test in other TestCase? Or at least make single test in one TestCase dependent on test in other TestCase?</p>
  
  <p>I tried:</p>
  
  <pre><code>/**
   * @depends A::testMethodName
   */
  </code></pre>
  
  <p>But as I expected it doesn't work. </p>
  
  <p><strong>Update:</strong></p>
  
  <p>The exact situation looks like this: There is <code>class B</code> which uses <code>class A</code>. So I want to test <code>B</code> only if the tests for <code>A</code> (or one of it's tests) run without a failure. How can I do that?</p>