Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00%
0 / 1
0.00%
0 / 2
CRAP
69.23%
9 / 13
CodeCoverage
0.00%
0 / 1
0.00%
0 / 2
4.47
69.23%
9 / 13
 increment()
0.00%
0 / 1
1.12
50.00%
1 / 2
 switcher($int)
0.00%
0 / 1
3.18
72.73%
8 / 11
<?php
namespace Feedback;
class CodeCoverage
{
    protected $increment = 0;
    public function increment()
    {
        $this->increment++;
        return $this->increment;
    }
    public function switcher($int)
    {
        switch ($int) {
            case 1:
                $response = 'number 1';
                break;
            case 2:
                $response = 'number 2';
                break;
            default:
                $response = 'default';
                break;
        }
        return $response;
    }