Problem/Motivation
Fox example:
- $this->assertFalse(in_array('t3', $cids), "Existing key 3 has been removed from &\$cids");
- $this->assertTrue(in_array('t4', $cids), "Non existing key 4 is still in &\$cids");
+ $this->assertNotContains('t3', $cids);
+ $this->assertContains('t4', $cids);
Proposed resolution
Replace with https://phpunit.readthedocs.io/ru/latest/assertions.html#assertcontains
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3153834-4.patch | 950 bytes | andypost |
| #6 | interdiff.txt | 842 bytes | andypost |
| #2 | masquerade_replace-in_array-with-assertContains-3153834.patch | 956 bytes | gena.io |
Comments
Comment #2
gena.io commentedComment #3
gena.io commentedComment #4
andypostthis is wrong, 3rd argument is
$messageand 4th one is deprecated$ignoreCaseComment #6
andypostThanks! Fixed on commit
Comment #7
andypostUpdated IS