PHP Class GrumPHP\Runner\TaskResult

Inheritance: implements GrumPHP\Runner\TaskResultInterface
Datei anzeigen Open project: phpro/grumphp Class Usage Examples

Public Methods

Method Description
createFailed ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context, string $message ) : TaskResult
createNonBlockingFailed ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context, string $message ) : TaskResult
createPassed ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context ) : TaskResult
createSkipped ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context ) : TaskResult
getContext ( ) : GrumPHP\Task\Context\ContextInterface
getMessage ( ) : null | string
getResultCode ( ) : integer
getTask ( ) : GrumPHP\Task\TaskInterface
isBlocking ( ) : boolean
isPassed ( ) : boolean

Private Methods

Method Description
__construct ( integer $resultCode, GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context, string | null $message = null ) Initializes test result.

Method Details

createFailed() public static method

public static createFailed ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context, string $message ) : TaskResult
$task GrumPHP\Task\TaskInterface
$context GrumPHP\Task\Context\ContextInterface
$message string
return TaskResult

createNonBlockingFailed() public static method

public static createNonBlockingFailed ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context, string $message ) : TaskResult
$task GrumPHP\Task\TaskInterface
$context GrumPHP\Task\Context\ContextInterface
$message string
return TaskResult

createPassed() public static method

public static createPassed ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context ) : TaskResult
$task GrumPHP\Task\TaskInterface
$context GrumPHP\Task\Context\ContextInterface
return TaskResult

createSkipped() public static method

public static createSkipped ( GrumPHP\Task\TaskInterface $task, GrumPHP\Task\Context\ContextInterface $context ) : TaskResult
$task GrumPHP\Task\TaskInterface
$context GrumPHP\Task\Context\ContextInterface
return TaskResult

getContext() public method

public getContext ( ) : GrumPHP\Task\Context\ContextInterface
return GrumPHP\Task\Context\ContextInterface

getMessage() public method

public getMessage ( ) : null | string
return null | string

getResultCode() public method

public getResultCode ( ) : integer
return integer

getTask() public method

public getTask ( ) : GrumPHP\Task\TaskInterface
return GrumPHP\Task\TaskInterface

isBlocking() public method

public isBlocking ( ) : boolean
return boolean

isPassed() public method

public isPassed ( ) : boolean
return boolean