Use composer as application autoloader

This commit is contained in:
Romain Neutron
2013-01-18 17:47:25 +01:00
parent 358cdddcc6
commit 2069d40544
784 changed files with 1031 additions and 1806 deletions

View File

@@ -0,0 +1,20 @@
<?php
require_once __DIR__ . '/../Bridge_datas.inc';
class Bridge_Api_ElementCollectionTest extends PHPUnit_Framework_TestCase
{
public function testAdd_element()
{
$elements = array();
$collection = new Bridge_Api_ElementCollection();
$i = 0;
while ($i < 5) {
$elements[] = $element = $this->getMock("Bridge_Api_ElementInterface");
$collection->add_element(new $element);
$i ++;
}
$this->assertEquals(5, sizeof($collection->get_elements()));
}
}