Fix PSR-0 file naming

This commit is contained in:
Romain Neutron
2014-02-14 12:16:54 +01:00
parent 787e86aacf
commit c5d3f97258
83 changed files with 45 additions and 38 deletions

View File

@@ -0,0 +1,27 @@
<?php
class databox_descriptionStructureTest extends \PhraseanetTestCase
{
public function testToArray()
{
$structure = new \databox_descriptionStructure();
$array = ['name1' => 'value1', 'name2' => 'value2'];
$element = $this->provideDataboxFieldMock();
$element->expects($this->once())
->method('toArray')
->will($this->returnValue($array));
$structure->add_element($element);
$this->assertEquals([$array], $structure->toArray());
}
private function provideDataboxFieldMock()
{
return $this->getMockBuilder('databox_field')
->disableOriginalConstructor()
->getMock();
}
}