jaroslavtyc/drd-plus-tables

View on GitHub
tests/Tables/Theurgist/Spells/SpellParameters/RealmTest.php

Summary

Maintainability
A
0 mins
Test Coverage

The method I_can_not_create_it_negative is not named in camelCase.
Open

    public function I_can_not_create_it_negative()
    {
        $this->expectException(\DrdPlus\Tables\Theurgist\Spells\SpellParameters\Exceptions\RealmCanNotBeNegative::class);
        $this->expectExceptionMessageMatches('~-456~');
        new Realm(-456);

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_use_it is not named in camelCase.
Open

    public function I_can_use_it()
    {
        $zero = new Realm(0);
        self::assertSame(0, $zero->getValue());
        self::assertSame('0', (string)$zero);

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