mirror of
				https://github.com/alchemy-fr/Phraseanet.git
				synced 2025-10-26 11:23:13 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			552 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			552 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| require_once __DIR__ . '/../Bridge_datas.inc';
 | |
| 
 | |
| /**
 | |
|  * @group functional
 | |
|  * @group legacy
 | |
|  */
 | |
| class Bridge_Api_ContainerCollectionTest extends \PhraseanetTestCase
 | |
| {
 | |
| 
 | |
|     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()));
 | |
|     }
 | |
| }
 | 
