mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Use composer as application autoloader
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../Bridge_datas.inc';
|
||||
|
||||
class Bridge_Api_ContainerCollectionTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
public function testAdd_element()
|
||||
{
|
||||
$collection = new Bridge_Api_ContainerCollection();
|
||||
$i = 0;
|
||||
while ($i < 5) {
|
||||
$container = $this->getMock("Bridge_Api_ContainerInterface");
|
||||
$collection->add_element(new $container);
|
||||
$i ++;
|
||||
}
|
||||
$this->assertEquals(5, sizeof($collection->get_elements()));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user