Passed
Push — master ( 4ee327...62eb0a )
by Dmitry
02:50
created

Tester::initStepsList()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace PHPKitchen\CodeSpecs\Specification;
4
5
use PHPKitchen\CodeSpecs\Contract\TestGuy;
6
use PHPKitchen\CodeSpecs\Mixin\TestGuyMethods;
7
use PHPUnit\Framework\Test;
8
9
/**
10
 * Tester is a simple class designed to make PHPUnit tests more readable using BDD-style
11
 * syntax. Tester represents a test-guy who is testing your code, so tests writes as a story
12
 * of what tester is doing. Example:
13
 * <pre>
14
 * // do stuff
15
 * .......
16
 * $I = $this->tester;
17
 * $I->describe('how user activates processor for PDF transformation to HTML');
18
 * $I->expectsThat('processor converts PDF to HTML and return HTML representation of given PDF.');
19
 * $I->seeString($processedContent)
20
 *      ->isEqualTo(self::EXPECTED_CONTENT);
21
 * </pre>
22
 *
23
 * @package PHPKitchen\CodeSpecs
24
 * @author Dmitry Kolodko <[email protected]>
25
 */
26
class Tester implements TestGuy {
27
    use TestGuyMethods;
28
29
    public function __construct(Test $test) {
30
        $this->context = $test;
31
        $this->initStepsList();
32
    }
33
}