Issues (83)

src/Runner/OutcomeInterface.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace hanneskod\readmetester\Runner;
4
5
use hanneskod\readmetester\Example\ExampleObj;
0 ignored issues
show
The type hanneskod\readmetester\Example\ExampleObj was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
/**
8
 * Represents an outcome (effect) of an executed example
9
 */
10
interface OutcomeInterface
11
{
12
    /**
13
     * Get the actual outcome data
14
     */
15
    public function getContent(): string;
16
17
    /**
18
     * Get a free text description of this outcome
19
     */
20
    public function getDescription(): string;
21
22
    /**
23
     * Get example this outcome originates from
24
     */
25
    public function getExample(): ExampleObj;
26
27
    /**
28
     * Check if unhandled outcome should trigger an error
29
     */
30
    public function mustBeHandled(): bool;
31
32
    /**
33
     * Check if this is an error outcome
34
     */
35
    public function isError(): bool;
36
37
    /**
38
     * Check if this is an output outcome
39
     */
40
    public function isOutput(): bool;
41
42
    /**
43
     * Check if this is a skipped outcome
44
     */
45
    public function isSkipped(): bool;
46
47
    /**
48
     * Check if this is a void outcome
49
     */
50
    public function isVoid(): bool;
51
}
52