Skip to content

Commit

Permalink
result spec uses startTest interface correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
brianium committed Oct 28, 2015
1 parent 7598532 commit 12d17f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion specs/test-result.spec.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
});

it('should increment the test count', function() {
$this->result->startTest();
$test = new Test('test', function () {});
$this->result->startTest($test);
assert(1 === $this->result->getTestCount(), "test count should be 1");
});

Expand Down

0 comments on commit 12d17f1

Please sign in to comment.