Skip to content

Commit

Permalink
Add test coverage for newly added information methods
Browse files Browse the repository at this point in the history
  • Loading branch information
epdenouden authored and sebastianbergmann committed Dec 6, 2018
1 parent e4edc0b commit 94487b2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/unit/Runner/PhptTestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ protected function tearDown(): void
$this->testCase = null;
}

public function testAlwaysReportsNumberOfAssertionsIsOne(): void {
$this->assertSame(1, $this->testCase->getNumAssertions());
}

public function testAlwaysReportsItDoesNotUseADataprovider(): void {
$this->assertSame(false, $this->testCase->usesDataProvider());
}

public function testShouldRunFileSectionAsTest(): void
{
$this->setPhpContent($this->ensureCorrectEndOfLine(self::EXPECT_CONTENT));
Expand Down

0 comments on commit 94487b2

Please sign in to comment.