diff options
author | George Petculescu <gxgpet@gmail.com> | 2021-09-26 22:56:39 +0200 |
---|---|---|
committer | George Petculescu <gxgpet@gmail.com> | 2021-10-04 15:36:25 +0200 |
commit | 9f6925398097a4f655827dc4030c82d435e27ae8 (patch) | |
tree | bd3598444f5fff4240ba0719043cd7c04587334a /tests/codeigniter/libraries/Table_test.php | |
parent | 4fa09ccaa80770ed11a2fdf6f1e28c5e14914be4 (diff) |
Adds PHP 8 in Travis
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>')); } } |