tests/Equipment/BelongingsTest.php
The method I_can_get_weight_of_items is not named in camelCase. Open
Open
public function I_can_get_weight_of_items()
{
$belongings = new Belongings();
$weightTable = new WeightTable();
self::assertEquals(new Weight(0, Weight::KG, $weightTable), $belongings->getWeight($weightTable));
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method I_can_add_and_remove_item is not named in camelCase. Open
Open
public function I_can_add_and_remove_item()
{
$belongings = new Belongings();
self::assertCount(0, $belongings);
$belongings->addItem($item = $this->createItem($belongings, true /* already paired with */));
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}