mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 03:53:13 +00:00
28 lines
666 B
PHP
28 lines
666 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
|
require_once __DIR__ . '/../Bridge_datas.inc';
|
|
|
|
/**
|
|
* Test class for Bridge_Api_ContainerCollection.
|
|
* Generated by PHPUnit on 2011-10-12 at 17:59:33.
|
|
*/
|
|
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()));
|
|
}
|
|
|
|
}
|
|
|
|
?>
|