diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2021-02-04 13:25:03 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2021-02-04 13:29:07 +0000 |
| commit | 439fb65f605e8c78781fad1aae09eb97f9ecbf9b (patch) | |
| tree | 48e5a23fd377f7bcf09d3485784ed7d29c844bc3 /tests | |
| parent | 04928faf4e21dcf6cecdbac0a2e4c8b03137b7dd (diff) | |
| download | webtrees-439fb65f605e8c78781fad1aae09eb97f9ecbf9b.tar.gz webtrees-439fb65f605e8c78781fad1aae09eb97f9ecbf9b.tar.bz2 webtrees-439fb65f605e8c78781fad1aae09eb97f9ecbf9b.zip | |
PHP7.1 Compatibility in tests
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/app/Elements/XrefFamilyTest.php | 4 | ||||
| -rw-r--r-- | tests/app/Elements/XrefIndividualTest.php | 4 | ||||
| -rw-r--r-- | tests/app/Elements/XrefLocationTest.php | 4 | ||||
| -rw-r--r-- | tests/app/Elements/XrefMediaTest.php | 4 | ||||
| -rw-r--r-- | tests/app/Elements/XrefNoteTest.php | 4 | ||||
| -rw-r--r-- | tests/app/Elements/XrefRepositoryTest.php | 4 | ||||
| -rw-r--r-- | tests/app/Elements/XrefSourceTest.php | 4 | ||||
| -rw-r--r-- | tests/app/Elements/XrefSubmissionTest.php | 4 | ||||
| -rw-r--r-- | tests/app/Elements/XrefSubmitterTest.php | 4 |
9 files changed, 18 insertions, 18 deletions
diff --git a/tests/app/Elements/XrefFamilyTest.php b/tests/app/Elements/XrefFamilyTest.php index 9a31ab55e6..f92fa235a6 100644 --- a/tests/app/Elements/XrefFamilyTest.php +++ b/tests/app/Elements/XrefFamilyTest.php @@ -62,10 +62,10 @@ class XrefFamilyTest extends TestCase $dom->loadHTML($html); $select_nodes = $dom->getElementsByTagName('select'); - self::assertEquals(1, $select_nodes->count()); + self::assertEquals(1, $select_nodes->length); $option_nodes = $select_nodes[0]->getElementsByTagName('option'); - self::assertEquals(1, $option_nodes->count()); + self::assertEquals(1, $option_nodes->length); } /** diff --git a/tests/app/Elements/XrefIndividualTest.php b/tests/app/Elements/XrefIndividualTest.php index 58d6dfe3fa..910dfd91db 100644 --- a/tests/app/Elements/XrefIndividualTest.php +++ b/tests/app/Elements/XrefIndividualTest.php @@ -65,10 +65,10 @@ class XrefIndividualTest extends TestCase $dom->loadHTML($html); $select_nodes = $dom->getElementsByTagName('select'); - self::assertEquals(1, $select_nodes->count()); + self::assertEquals(1, $select_nodes->length); $option_nodes = $select_nodes[0]->getElementsByTagName('option'); - self::assertEquals(1, $option_nodes->count()); + self::assertEquals(1, $option_nodes->length); } /** diff --git a/tests/app/Elements/XrefLocationTest.php b/tests/app/Elements/XrefLocationTest.php index c9cb52dc8c..89fcbf56db 100644 --- a/tests/app/Elements/XrefLocationTest.php +++ b/tests/app/Elements/XrefLocationTest.php @@ -64,10 +64,10 @@ class XrefLocationTest extends TestCase $dom->loadHTML($html); $select_nodes = $dom->getElementsByTagName('select'); - self::assertEquals(1, $select_nodes->count()); + self::assertEquals(1, $select_nodes->length); $option_nodes = $select_nodes[0]->getElementsByTagName('option'); - self::assertEquals(1, $option_nodes->count()); + self::assertEquals(1, $option_nodes->length); } /** diff --git a/tests/app/Elements/XrefMediaTest.php b/tests/app/Elements/XrefMediaTest.php index e8988a8531..674ef1756b 100644 --- a/tests/app/Elements/XrefMediaTest.php +++ b/tests/app/Elements/XrefMediaTest.php @@ -64,10 +64,10 @@ class XrefMediaTest extends TestCase $dom->loadHTML($html); $select_nodes = $dom->getElementsByTagName('select'); - self::assertEquals(1, $select_nodes->count()); + self::assertEquals(1, $select_nodes->length); $option_nodes = $select_nodes[0]->getElementsByTagName('option'); - self::assertEquals(1, $option_nodes->count()); + self::assertEquals(1, $option_nodes->length); } /** * @return void diff --git a/tests/app/Elements/XrefNoteTest.php b/tests/app/Elements/XrefNoteTest.php index 30c45f7034..44794702c0 100644 --- a/tests/app/Elements/XrefNoteTest.php +++ b/tests/app/Elements/XrefNoteTest.php @@ -64,10 +64,10 @@ class XrefNoteTest extends TestCase $dom->loadHTML($html); $select_nodes = $dom->getElementsByTagName('select'); - self::assertEquals(1, $select_nodes->count()); + self::assertEquals(1, $select_nodes->length); $option_nodes = $select_nodes[0]->getElementsByTagName('option'); - self::assertEquals(1, $option_nodes->count()); + self::assertEquals(1, $option_nodes->length); } /** * @return void diff --git a/tests/app/Elements/XrefRepositoryTest.php b/tests/app/Elements/XrefRepositoryTest.php index a6b3b180ef..76b9c50a60 100644 --- a/tests/app/Elements/XrefRepositoryTest.php +++ b/tests/app/Elements/XrefRepositoryTest.php @@ -64,10 +64,10 @@ class XrefRepositoryTest extends TestCase $dom->loadHTML($html); $select_nodes = $dom->getElementsByTagName('select'); - self::assertEquals(1, $select_nodes->count()); + self::assertEquals(1, $select_nodes->length); $option_nodes = $select_nodes[0]->getElementsByTagName('option'); - self::assertEquals(1, $option_nodes->count()); + self::assertEquals(1, $option_nodes->length); } /** * @return void diff --git a/tests/app/Elements/XrefSourceTest.php b/tests/app/Elements/XrefSourceTest.php index d7736c2ddb..65e2572582 100644 --- a/tests/app/Elements/XrefSourceTest.php +++ b/tests/app/Elements/XrefSourceTest.php @@ -64,10 +64,10 @@ class XrefSourceTest extends TestCase $dom->loadHTML($html); $select_nodes = $dom->getElementsByTagName('select'); - self::assertEquals(1, $select_nodes->count()); + self::assertEquals(1, $select_nodes->length); $option_nodes = $select_nodes[0]->getElementsByTagName('option'); - self::assertEquals(1, $option_nodes->count()); + self::assertEquals(1, $option_nodes->length); } /** * @return void diff --git a/tests/app/Elements/XrefSubmissionTest.php b/tests/app/Elements/XrefSubmissionTest.php index 3eac2ce18d..a121b0eaa7 100644 --- a/tests/app/Elements/XrefSubmissionTest.php +++ b/tests/app/Elements/XrefSubmissionTest.php @@ -64,10 +64,10 @@ class XrefSubmissionTest extends TestCase $dom->loadHTML($html); $select_nodes = $dom->getElementsByTagName('select'); - self::assertEquals(1, $select_nodes->count()); + self::assertEquals(1, $select_nodes->length); $option_nodes = $select_nodes[0]->getElementsByTagName('option'); - self::assertEquals(1, $option_nodes->count()); + self::assertEquals(1, $option_nodes->length); } /** * @return void diff --git a/tests/app/Elements/XrefSubmitterTest.php b/tests/app/Elements/XrefSubmitterTest.php index 5de359f154..202b5a41a6 100644 --- a/tests/app/Elements/XrefSubmitterTest.php +++ b/tests/app/Elements/XrefSubmitterTest.php @@ -64,10 +64,10 @@ class XrefSubmitterTest extends TestCase $dom->loadHTML($html); $select_nodes = $dom->getElementsByTagName('select'); - self::assertEquals(1, $select_nodes->count()); + self::assertEquals(1, $select_nodes->length); $option_nodes = $select_nodes[0]->getElementsByTagName('option'); - self::assertEquals(1, $option_nodes->count()); + self::assertEquals(1, $option_nodes->length); } /** * @return void |
