diff options
author | Andrey Andreev <narf@devilix.net> | 2021-12-20 14:47:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 14:47:39 +0100 |
commit | efc96b71e4b1d13d713d8b2be01796b7d30e6f9b (patch) | |
tree | 68a44223c3c9664fbb3bea58c59cde5e3343018d /tests/codeigniter/libraries/Table_test.php | |
parent | 16ab872de21dcf938d9c6243d732b0206c8efa7f (diff) | |
parent | e7110e559a0c46d5001368c25ed246ff303d3afe (diff) |
Merge pull request #6074 from philsturgeon/ci3-php8
CodeIgniter 3.0 on PHP 8
Diffstat (limited to 'tests/codeigniter/libraries/Table_test.php')
-rw-r--r-- | tests/codeigniter/libraries/Table_test.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/codeigniter/libraries/Table_test.php b/tests/codeigniter/libraries/Table_test.php index f505a43fc..6efae5d18 100644 --- a/tests/codeigniter/libraries/Table_test.php +++ b/tests/codeigniter/libraries/Table_test.php @@ -270,14 +270,14 @@ class Table_test extends CI_TestCase { $table = $this->table->generate($data); // Test the table header - $this->assertContains('<th>Name</th>', $table); - $this->assertContains('<th>Color</th>', $table); - $this->assertContains('<th>Size</th>', $table); + $this->assertEquals(1, substr_count($table, '<th>Name</th>')); + $this->assertEquals(1, substr_count($table, '<th>Color</th>')); + $this->assertEquals(1, substr_count($table, '<th>Size</th>')); // Test the first entry - $this->assertContains('<td>Fred</td>', $table); - $this->assertContains('<td>Blue</td>', $table); - $this->assertContains('<td>Small</td>', $table); + $this->assertEquals(1, substr_count($table, '<td>Fred</td>')); + $this->assertEquals(1, substr_count($table, '<td>Blue</td>')); + $this->assertEquals(1, substr_count($table, '<td>Small</td>')); } } |