Skip to content

Commit

Permalink
Added a separate test for assertSeeTextInOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
Jantho1990 committed Mar 18, 2018
1 parent 9740e6a commit 27ad8db
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/Foundation/Testing/Constraints/SeeInOrderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class SeeInOrderTest extends TestCase
{
public function testAllAssertionsDetected()
public function testAllSeeInOrderAssertionsDetected()
{
$test = new FoundationTestResponseTest('testAssertSeeInOrder');
$test->run();
Expand All @@ -18,4 +18,15 @@ public function testAllAssertionsDetected()
// the global settings don't check for risky tests.
$this->assertEquals($test->getNumAssertions(), 4);
}

public function testAllSeeTextInOrderAssertionsDetected()
{
$test = new FoundationTestResponseTest('testAssertSeeTextInOrder');
$test->run();
// If we get four assertions, that means all of the assertions
// were detected by PHPUnit, which is what we want to know.
// Doing it this way allows the test to work even though
// the global settings don't check for risky tests.
$this->assertEquals($test->getNumAssertions(), 4);
}
}

0 comments on commit 27ad8db

Please sign in to comment.