Skip to content

Commit

Permalink
phpunit, correctly assertion method
Browse files Browse the repository at this point in the history
make a mistake when use php-rector migrate phpunit 3.x -> php 9.x
  • Loading branch information
hungtrinh committed Mar 2, 2023
1 parent 1250b4c commit 80e07ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Zend/Ldap/AttributeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public function testRemoveAttributeValueSimple()
$this->assertEquals(3, count($data['test']));
$this->assertContains('value1', $data['test']);
$this->assertContains('value3', $data['test']);
$this->assertStringNotContainsString('value2', $data['test']);
$this->assertNotContains('value2', $data['test']);
}

public function testRemoveAttributeValueArray()
Expand All @@ -358,8 +358,8 @@ public function testRemoveAttributeValueArray()
$this->assertTrue(is_array($data['test']));
$this->assertEquals(2, count($data['test']));
$this->assertContains('value3', $data['test']);
$this->assertStringNotContainsString('value1', $data['test']);
$this->assertStringNotContainsString('value2', $data['test']);
$this->assertNotContains('value1', $data['test']);
$this->assertNotContains('value2', $data['test']);
}

public function testRemoveAttributeMultipleValueSimple()
Expand Down

0 comments on commit 80e07ef

Please sign in to comment.