How to write unit test for the fact that trait was included in class(and overriding existing method)
<p>A.php   </p>

<pre><code>class Parent {

    protected function myFunc() {

    }
}
</code></pre>

<p>B.php</p>

<pre><code>include Neighbour
class Child extends Parent {


}
</code></pre>

<p>Neighbour.php</p>

<pre><code>trait Neighbour {
     protected function myFunc() {

    }
}
</code></pre>

<p>I need to write a tests for <code>Child</code> class. This class extended from <code>Parent</code> class and has method inherited <code>myFunc()</code>. I include trait in this class which has own <code>myFunc()</code> method. Is there any graceful way to unit test this fact?</p>