jaroslavtyc/drd-plus-equipment

View on GitHub
tests/Equipment/BelongingsTest.php

Summary

Maintainability
A
0 mins
Test Coverage

The method I_can_get_weight_of_items is not named in camelCase.
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));
Severity: Minor
Found in tests/Equipment/BelongingsTest.php by phpmd

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

    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 */));
Severity: Minor
Found in tests/Equipment/BelongingsTest.php by phpmd

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

There are no issues that match your filters.

Category
Status