Skip to content

Tests should verify exception messages #2777

@ozh

Description

@ozh

In test we have a few @expectedException , eg in tests/tests/install/install.php :

    /**
     * Test incorrect config provided
     * @expectedException YOURLS\Exceptions\ConfigException
     */
    public function test_incorrect_config() {
        $test = new \YOURLS\Config\Config(rand_str());
        $test->find_config();
    }

We should also be using the @expectedExceptionMessage annotation

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions