V 3.5 RC 1

This commit is contained in:
Romain Neutron
2011-12-05 00:23:28 +01:00
parent 6f1ee368aa
commit 4c5b7eb658
5563 changed files with 466984 additions and 985416 deletions

View File

@@ -0,0 +1,27 @@
<?php
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
require_once dirname(__FILE__) . '/../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()));
}
}
?>