Skip to content

Commit

Permalink
Merge branch '7.4' into 7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Nov 19, 2018
2 parents c1e82c0 + bac4fa5 commit 6ddb43d
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 6ddb43d

Please sign in to comment.