CS - camelCase & curly braces

This commit is contained in:
Eric Clemmons 2011-10-25 09:12:57 -07:00
parent d9b7abb7c7
commit 6cb7acfa75
3 changed files with 7 additions and 6 deletions

View File

@ -16,11 +16,12 @@ class ItemGroupEntity
public $name;
/** @Column(type="string", nullable=true) */
public $group_name;
public $groupName;
public function __construct($id, $name, $group_name) {
public function __construct($id, $name, $groupName)
{
$this->id = $id;
$this->name = $name;
$this->group_name = $group_name;
$this->groupName = $groupName;
}
}

View File

@ -141,7 +141,7 @@ class EntityChoiceListTest extends DoctrineOrmTestCase
$item3,
$item4,
),
'group_name'
'groupName'
);
$this->assertEquals(array(
@ -168,7 +168,7 @@ class EntityChoiceListTest extends DoctrineOrmTestCase
$item1,
$item2,
),
'group_name.child.that.does.not.exist'
'groupName.child.that.does.not.exist'
);
$this->assertEquals(array(

View File

@ -479,7 +479,7 @@ class EntityTypeTest extends TypeTestCase
'class' => self::ITEM_GROUP_CLASS,
'choices' => array($item1, $item2, $item3, $item4),
'property' => 'name',
'group_by' => 'group_name',
'group_by' => 'groupName',
));
$field->bind('2');