Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
TestResult
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace HtaccessCapabilityTester;
4
5/**
6 * Class for holding properties of a TestResult
7 *
8 * @package    HtaccessCapabilityTester
9 * @author     Bjørn Rosell <it@rosell.dk>
10 * @since      Class available since the beginning
11 */
12class TestResult
13{
14
15    /* @var bool|null   The result, null if inconclusive */
16    public $status;
17
18    /* @var string   Information about how the test failed / became inconclusive */
19    public $info;
20
21    /* @var string   Status code of last request in the test */
22    public $statusCodeOfLastRequest;
23
24    /**
25     * Constructor.
26     *
27     * @param  bool|null  $status
28     * @param  string     $info
29     * @param  string     $statusCodeOfLastRequest  (optional)
30     *
31     * @return void
32     */
33    public function __construct($status, $info, $statusCodeOfLastRequest = null)
34    {
35        $this->status = $status;
36        $this->info = $info;
37        $this->statusCodeOfLastRequest = $statusCodeOfLastRequest;
38    }
39}