Thanks to visit codestin.com
Credit goes to github.com

Skip to content

When starting a example with uppercase It we see no error #2

@mlopes

Description

@mlopes

If we use It instead of it no tests are ran for the specified example.

For example, the following code will fail to output a spec failure even though the tested class doesn't exist:

public function ItReturnsZeroWithNoArguments()
{
    $this->spec(StringCalculator::add())->should->be(0);
}

Expected output:

PHP fatal error: Class 'StringCalculator' not found

or

A warning saying the example should start with "it" small caps

or

Accept "it" case insensitive since PHP doesn't enforce case sensibility for method names.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions