Add third argument to verify custom error message isn't overwrite

This commit is contained in:
Gabriel Caruso 2017-12-19 20:32:49 -02:00
parent 491b697b77
commit b82a0734dc
2 changed files with 16 additions and 16 deletions

View File

@ -4,13 +4,13 @@ final class MyTest extends \PHPUnit\Framework\TestCase
{
public function test()
{
$this->assertCount(5, $something);
$this->assertNotCount(5, $something);
$this->assertCount(5, $something);
$this->assertNotCount(5, $something);
$this->assertCount(5, $something);
$this->assertNotCount(5, $something);
$this->assertCount(5, $something);
$this->assertNotCount(5, $something);
$this->assertCount(5, $something, 'third argument');
$this->assertNotCount(5, $something, 'third argument');
$this->assertCount(5, $something, 'third argument');
$this->assertNotCount(5, $something, 'third argument');
$this->assertCount(5, $something, 'third argument');
$this->assertNotCount(5, $something, 'third argument');
$this->assertCount(5, $something, 'third argument');
$this->assertNotCount(5, $something, 'third argument');
}
}

View File

@ -4,13 +4,13 @@ final class MyTest extends \PHPUnit\Framework\TestCase
{
public function test()
{
$this->assertSame(5, count($something));
$this->assertNotSame(5, count($something));
$this->assertEquals(5, count($something));
$this->assertNotEquals(5, count($something));
$this->assertSame(5, sizeof($something));
$this->assertNotSame(5, sizeof($something));
$this->assertEquals(5, sizeof($something));
$this->assertNotEquals(5, sizeof($something));
$this->assertSame(5, count($something), 'third argument');
$this->assertNotSame(5, count($something), 'third argument');
$this->assertEquals(5, count($something), 'third argument');
$this->assertNotEquals(5, count($something), 'third argument');
$this->assertSame(5, sizeof($something), 'third argument');
$this->assertNotSame(5, sizeof($something), 'third argument');
$this->assertEquals(5, sizeof($something), 'third argument');
$this->assertNotEquals(5, sizeof($something), 'third argument');
}
}