tests/Tables/Theurgist/Spells/SpellParameters/RealmTest.php
The method I_can_not_create_it_negative is not named in camelCase. Open
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);
- 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_use_it is not named in camelCase. Open
Open
public function I_can_use_it()
{
$zero = new Realm(0);
self::assertSame(0, $zero->getValue());
self::assertSame('0', (string)$zero);
- 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() {
}
}