PHP Classes
elePHPant
Icontem

File: otherClass.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of wiki chua  >  DiLioc  >  otherClass.php  >  Download  
File: otherClass.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: DiLioc
Register and call dependency injection containers
Author: By
Last change:
Date: 1 year ago
Size: 579 bytes
 

Contents

Class file image Download
<?php

class TestClass3
{
    function
__construct(TestClass $Tests) {
       
$this->Tests = $Tests;
    }

    function
out()
    {
        return
'from TestClass3 calling TestClass '. $this->Tests->out();
    }
}

class
TestClass {
    function
out()
    {
        return
'I am from TestClass';
    }
}

class
TestClass5 {
    function
out()
    {
        return
'I am from TestClass5';
    }
}

class
TestClass4
{
    function
__construct(TestClass $Tests, TestClass2 $Testss) {
       
$this->Tests = $Tests;
       
$this->Testss = $Testss;
    }

    function
out()
    {
        return
$this->Tests->out() .' and from TestClass2 '. $this->Testss->out();
    }
}