Skip to content

Commit 4d942c7

Browse files
committed
fixed tests
2 parents 362fcf4 + 2ade7af commit 4d942c7

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)