title: Merging behavioral methods to a PHP class
body: <p>Let's say i have the following behavior and standard class: </p>
  
  <pre><code>abstract class MyBehavior {
       function testFunction(){
           return 'test';
       }
  }
  
  class TestClass {
       var $use = array('MyBehavior');
  
       function __construct(){
           // do something to give me access to function testFunction through
           // $this-&gt;testFunction();
       }
  }
  
  $test = new TestClass();
  </code></pre>
  
  <p>As i commented, i would like the MyBehavior method to be available inside TestClass ($test->testFunction();) without "extending" the class...</p>
  
  <p>Is this possible?</p>
  
  <p><strong>EDIT:</strong> Thanks for all the responses, I have my answer, or at least i need to know what my options are, so thanks! I can only give one right answer, so I'm going with the first response.</p>