Skip to content

Commit

Permalink
class var renamed to test
Browse files Browse the repository at this point in the history
  • Loading branch information
klapuch committed Sep 8, 2017
1 parent aa35cc3 commit e57fbd9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Core/CustomFilename.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
use Tester;

final class CustomFilename implements Filename {
private $class;
private $test;
private $method;

public function __construct(Tester\TestCase $class, $method) {
$this->class = $class;
public function __construct(Tester\TestCase $test, $method) {
$this->test = $test;
$this->method = $method;
}

Expand All @@ -18,7 +18,7 @@ public function path() {
str_replace(
['\\'],
'_',
(new \ReflectionClass($this->class))->getName()
(new \ReflectionClass($this->test))->getName()
),
$this->method
);
Expand Down
8 changes: 4 additions & 4 deletions Core/IncrementalFilename.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@
final class IncrementalFilename implements Filename {
private static $calls = [];
private $origin;
private $class;
private $test;
private $method;

public function __construct(
Filename $origin,
Tester\TestCase $class,
Tester\TestCase $test,
$method
) {
$this->origin = $origin;
$this->class = $class;
$this->test = $test;
$this->method = $method;
}

public function path() {
return sprintf(
'%s_%02d',
$this->origin->path(),
$this->increment(spl_object_hash($this->class) . $this->method)
$this->increment(spl_object_hash($this->test) . $this->method)
);
}

Expand Down

0 comments on commit e57fbd9

Please sign in to comment.