Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of David Boskovic  >  miXin  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Unit test script
Class: miXin
Extend classes by using several mixin classes
Author: By
Last change:
Date: 3 years ago
Size: 356 bytes
 

Contents

Class file image Download
<?php

# include the magic
include('mixin.php');

# load up our classes
e_MixinUtil::load('tests/base.php');
e_MixinUtil::load('tests/extend.php');
e_MixinUtil::load('tests/extend2.php');
e_MixinUtil::load('tests/extend3.php');

# stir it up!
e_MixinUtil::mix();

# initialize the class
$test = new BaseClass;

# show the merged cool stuff
var_dump($test);