Skip to content

Commit 2ade7af

Browse files
Merge branch '2.8' into 3.3
* 2.8: Refactoring tests.
2 parents 5a26b97 + 056dcc6 commit 2ade7af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/ConstraintViolationListTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,16 @@ public function testArrayAccess()
8989
$this->list[] = $violation;
9090

9191
$this->assertSame($violation, $this->list[0]);
92-
$this->assertTrue(isset($this->list[0]));
92+
$this->assertArrayHasKey(0, $this->list);
9393

9494
unset($this->list[0]);
9595

96-
$this->assertFalse(isset($this->list[0]));
96+
$this->assertArrayNotHasKey(0, $this->list);
9797

9898
$this->list[10] = $violation;
9999

100100
$this->assertSame($violation, $this->list[10]);
101-
$this->assertTrue(isset($this->list[10]));
101+
$this->assertArrayHasKey(10, $this->list);
102102
}
103103

104104
public function testToString()

0 commit comments

Comments
 (0)