Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Nov 19, 2018
1 parent 3c27bda commit bac4fa5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/unit/Framework/AssertTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,20 @@ public function testAssertContainsEmptyStringInString(): void
$this->assertContains('', 'test');
}

public function testAssertStringContainsNonString(): void
{
$this->expectException(Exception::class);

$this->assertContains(null, '');
}

public function testAssertStringNotContainsNonString(): void
{
$this->expectException(Exception::class);

$this->assertNotContains(null, '');
}

public function testAssertArrayHasKeyThrowsExceptionForInvalidFirstArgument(): void
{
$this->expectException(Exception::class);
Expand Down

0 comments on commit bac4fa5

Please sign in to comment.