diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2020-12-30 09:13:04 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2020-12-30 10:48:09 +0000 |
| commit | 5e933c21f8006e675d1df8bcedc634ee61f4aec2 (patch) | |
| tree | c9cc8c537163542486eff0cfdca70187589358b9 /tests/app/Census/CensusOfUnitedStates1820Test.php | |
| parent | 708e66987f7d6eed5675fea31f4074192e368cac (diff) | |
| download | webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.tar.gz webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.tar.bz2 webtrees-5e933c21f8006e675d1df8bcedc634ee61f4aec2.zip | |
Testing
Diffstat (limited to 'tests/app/Census/CensusOfUnitedStates1820Test.php')
| -rw-r--r-- | tests/app/Census/CensusOfUnitedStates1820Test.php | 200 |
1 files changed, 100 insertions, 100 deletions
diff --git a/tests/app/Census/CensusOfUnitedStates1820Test.php b/tests/app/Census/CensusOfUnitedStates1820Test.php index d1ace57329..475c0370ae 100644 --- a/tests/app/Census/CensusOfUnitedStates1820Test.php +++ b/tests/app/Census/CensusOfUnitedStates1820Test.php @@ -2,7 +2,7 @@ /** * webtrees: online genealogy - * Copyright (C) 2019 webtrees development team + * Copyright (C) 2020 webtrees development team * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or @@ -37,8 +37,8 @@ class CensusOfUnitedStates1820Test extends TestCase { $census = new CensusOfUnitedStates1820(); - $this->assertSame('United States', $census->censusPlace()); - $this->assertSame('07 AUG 1820', $census->censusDate()); + self::assertSame('United States', $census->censusPlace()); + self::assertSame('07 AUG 1820', $census->censusDate()); } /** @@ -54,104 +54,104 @@ class CensusOfUnitedStates1820Test extends TestCase $census = new CensusOfUnitedStates1820(); $columns = $census->columns(); - $this->assertCount(32, $columns); - $this->assertInstanceOf(CensusColumnFullName::class, $columns[0]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[1]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[2]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[3]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[4]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[5]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[6]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[7]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[8]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[9]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[10]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[11]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[12]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[13]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[14]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[15]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[16]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[17]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[18]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[19]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[20]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[21]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[22]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[23]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[24]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[25]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[26]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[27]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[28]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[29]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[30]); - $this->assertInstanceOf(CensusColumnNull::class, $columns[31]); + self::assertCount(32, $columns); + self::assertInstanceOf(CensusColumnFullName::class, $columns[0]); + self::assertInstanceOf(CensusColumnNull::class, $columns[1]); + self::assertInstanceOf(CensusColumnNull::class, $columns[2]); + self::assertInstanceOf(CensusColumnNull::class, $columns[3]); + self::assertInstanceOf(CensusColumnNull::class, $columns[4]); + self::assertInstanceOf(CensusColumnNull::class, $columns[5]); + self::assertInstanceOf(CensusColumnNull::class, $columns[6]); + self::assertInstanceOf(CensusColumnNull::class, $columns[7]); + self::assertInstanceOf(CensusColumnNull::class, $columns[8]); + self::assertInstanceOf(CensusColumnNull::class, $columns[9]); + self::assertInstanceOf(CensusColumnNull::class, $columns[10]); + self::assertInstanceOf(CensusColumnNull::class, $columns[11]); + self::assertInstanceOf(CensusColumnNull::class, $columns[12]); + self::assertInstanceOf(CensusColumnNull::class, $columns[13]); + self::assertInstanceOf(CensusColumnNull::class, $columns[14]); + self::assertInstanceOf(CensusColumnNull::class, $columns[15]); + self::assertInstanceOf(CensusColumnNull::class, $columns[16]); + self::assertInstanceOf(CensusColumnNull::class, $columns[17]); + self::assertInstanceOf(CensusColumnNull::class, $columns[18]); + self::assertInstanceOf(CensusColumnNull::class, $columns[19]); + self::assertInstanceOf(CensusColumnNull::class, $columns[20]); + self::assertInstanceOf(CensusColumnNull::class, $columns[21]); + self::assertInstanceOf(CensusColumnNull::class, $columns[22]); + self::assertInstanceOf(CensusColumnNull::class, $columns[23]); + self::assertInstanceOf(CensusColumnNull::class, $columns[24]); + self::assertInstanceOf(CensusColumnNull::class, $columns[25]); + self::assertInstanceOf(CensusColumnNull::class, $columns[26]); + self::assertInstanceOf(CensusColumnNull::class, $columns[27]); + self::assertInstanceOf(CensusColumnNull::class, $columns[28]); + self::assertInstanceOf(CensusColumnNull::class, $columns[29]); + self::assertInstanceOf(CensusColumnNull::class, $columns[30]); + self::assertInstanceOf(CensusColumnNull::class, $columns[31]); - $this->assertSame('Name', $columns[0]->abbreviation()); - $this->assertSame('M0-10', $columns[1]->abbreviation()); - $this->assertSame('M10-16', $columns[2]->abbreviation()); - $this->assertSame('M16-18', $columns[3]->abbreviation()); - $this->assertSame('M16-26', $columns[4]->abbreviation()); - $this->assertSame('M26-45', $columns[5]->abbreviation()); - $this->assertSame('M45+', $columns[6]->abbreviation()); - $this->assertSame('F0-10', $columns[7]->abbreviation()); - $this->assertSame('F10-16', $columns[8]->abbreviation()); - $this->assertSame('F16-26', $columns[9]->abbreviation()); - $this->assertSame('F26-45', $columns[10]->abbreviation()); - $this->assertSame('F45+', $columns[11]->abbreviation()); - $this->assertSame('FNR', $columns[12]->abbreviation()); - $this->assertSame('AG', $columns[13]->abbreviation()); - $this->assertSame('COM', $columns[14]->abbreviation()); - $this->assertSame('MNF', $columns[15]->abbreviation()); - $this->assertSame('M0', $columns[16]->abbreviation()); - $this->assertSame('M14', $columns[17]->abbreviation()); - $this->assertSame('M26', $columns[18]->abbreviation()); - $this->assertSame('M45', $columns[19]->abbreviation()); - $this->assertSame('F0', $columns[20]->abbreviation()); - $this->assertSame('F14', $columns[21]->abbreviation()); - $this->assertSame('F26', $columns[22]->abbreviation()); - $this->assertSame('F45', $columns[23]->abbreviation()); - $this->assertSame('M0', $columns[24]->abbreviation()); - $this->assertSame('M14', $columns[25]->abbreviation()); - $this->assertSame('M26', $columns[26]->abbreviation()); - $this->assertSame('M45', $columns[27]->abbreviation()); - $this->assertSame('F0', $columns[28]->abbreviation()); - $this->assertSame('F14', $columns[29]->abbreviation()); - $this->assertSame('F26', $columns[30]->abbreviation()); - $this->assertSame('F45', $columns[31]->abbreviation()); + self::assertSame('Name', $columns[0]->abbreviation()); + self::assertSame('M0-10', $columns[1]->abbreviation()); + self::assertSame('M10-16', $columns[2]->abbreviation()); + self::assertSame('M16-18', $columns[3]->abbreviation()); + self::assertSame('M16-26', $columns[4]->abbreviation()); + self::assertSame('M26-45', $columns[5]->abbreviation()); + self::assertSame('M45+', $columns[6]->abbreviation()); + self::assertSame('F0-10', $columns[7]->abbreviation()); + self::assertSame('F10-16', $columns[8]->abbreviation()); + self::assertSame('F16-26', $columns[9]->abbreviation()); + self::assertSame('F26-45', $columns[10]->abbreviation()); + self::assertSame('F45+', $columns[11]->abbreviation()); + self::assertSame('FNR', $columns[12]->abbreviation()); + self::assertSame('AG', $columns[13]->abbreviation()); + self::assertSame('COM', $columns[14]->abbreviation()); + self::assertSame('MNF', $columns[15]->abbreviation()); + self::assertSame('M0', $columns[16]->abbreviation()); + self::assertSame('M14', $columns[17]->abbreviation()); + self::assertSame('M26', $columns[18]->abbreviation()); + self::assertSame('M45', $columns[19]->abbreviation()); + self::assertSame('F0', $columns[20]->abbreviation()); + self::assertSame('F14', $columns[21]->abbreviation()); + self::assertSame('F26', $columns[22]->abbreviation()); + self::assertSame('F45', $columns[23]->abbreviation()); + self::assertSame('M0', $columns[24]->abbreviation()); + self::assertSame('M14', $columns[25]->abbreviation()); + self::assertSame('M26', $columns[26]->abbreviation()); + self::assertSame('M45', $columns[27]->abbreviation()); + self::assertSame('F0', $columns[28]->abbreviation()); + self::assertSame('F14', $columns[29]->abbreviation()); + self::assertSame('F26', $columns[30]->abbreviation()); + self::assertSame('F45', $columns[31]->abbreviation()); - $this->assertSame('Name of head of family', $columns[0]->title()); - $this->assertSame('Free white males 0-10 years', $columns[1]->title()); - $this->assertSame('Free white males 10-16 years', $columns[2]->title()); - $this->assertSame('Free white males 16-18 years', $columns[3]->title()); - $this->assertSame('Free white males 16-26 years', $columns[4]->title()); - $this->assertSame('Free white males 26-45 years', $columns[5]->title()); - $this->assertSame('Free white males 45+ years', $columns[6]->title()); - $this->assertSame('Free white females 0-10 years', $columns[7]->title()); - $this->assertSame('Free white females 10-16 years', $columns[8]->title()); - $this->assertSame('Free white females 16-26 years', $columns[9]->title()); - $this->assertSame('Free white females 26-45 years', $columns[10]->title()); - $this->assertSame('Free white females 45+ years', $columns[11]->title()); - $this->assertSame('Foreigners not naturalized', $columns[12]->title()); - $this->assertSame('No. engaged in agriculture', $columns[13]->title()); - $this->assertSame('No. engaged in commerce', $columns[14]->title()); - $this->assertSame('No. engaged in manufactures', $columns[15]->title()); - $this->assertSame('Slave males 0-14 years', $columns[16]->title()); - $this->assertSame('Slave males 14-26 years', $columns[17]->title()); - $this->assertSame('Slave males 26-45 years', $columns[18]->title()); - $this->assertSame('Slave males 45+ years', $columns[19]->title()); - $this->assertSame('Slave females 0-14 years', $columns[20]->title()); - $this->assertSame('Slave females 14-26 years', $columns[21]->title()); - $this->assertSame('Slave females 26-45 years', $columns[22]->title()); - $this->assertSame('Slave females 45+ years', $columns[23]->title()); - $this->assertSame('Free colored males 0-14 years', $columns[24]->title()); - $this->assertSame('Free colored males 14-26 years', $columns[25]->title()); - $this->assertSame('Free colored males 26-45 years', $columns[26]->title()); - $this->assertSame('Free colored males 45+ years', $columns[27]->title()); - $this->assertSame('Free colored females 0-14 years', $columns[28]->title()); - $this->assertSame('Free colored females 14-26 years', $columns[29]->title()); - $this->assertSame('Free colored females 26-45 years', $columns[30]->title()); - $this->assertSame('Free colored females 45+ years', $columns[31]->title()); + self::assertSame('Name of head of family', $columns[0]->title()); + self::assertSame('Free white males 0-10 years', $columns[1]->title()); + self::assertSame('Free white males 10-16 years', $columns[2]->title()); + self::assertSame('Free white males 16-18 years', $columns[3]->title()); + self::assertSame('Free white males 16-26 years', $columns[4]->title()); + self::assertSame('Free white males 26-45 years', $columns[5]->title()); + self::assertSame('Free white males 45+ years', $columns[6]->title()); + self::assertSame('Free white females 0-10 years', $columns[7]->title()); + self::assertSame('Free white females 10-16 years', $columns[8]->title()); + self::assertSame('Free white females 16-26 years', $columns[9]->title()); + self::assertSame('Free white females 26-45 years', $columns[10]->title()); + self::assertSame('Free white females 45+ years', $columns[11]->title()); + self::assertSame('Foreigners not naturalized', $columns[12]->title()); + self::assertSame('No. engaged in agriculture', $columns[13]->title()); + self::assertSame('No. engaged in commerce', $columns[14]->title()); + self::assertSame('No. engaged in manufactures', $columns[15]->title()); + self::assertSame('Slave males 0-14 years', $columns[16]->title()); + self::assertSame('Slave males 14-26 years', $columns[17]->title()); + self::assertSame('Slave males 26-45 years', $columns[18]->title()); + self::assertSame('Slave males 45+ years', $columns[19]->title()); + self::assertSame('Slave females 0-14 years', $columns[20]->title()); + self::assertSame('Slave females 14-26 years', $columns[21]->title()); + self::assertSame('Slave females 26-45 years', $columns[22]->title()); + self::assertSame('Slave females 45+ years', $columns[23]->title()); + self::assertSame('Free colored males 0-14 years', $columns[24]->title()); + self::assertSame('Free colored males 14-26 years', $columns[25]->title()); + self::assertSame('Free colored males 26-45 years', $columns[26]->title()); + self::assertSame('Free colored males 45+ years', $columns[27]->title()); + self::assertSame('Free colored females 0-14 years', $columns[28]->title()); + self::assertSame('Free colored females 14-26 years', $columns[29]->title()); + self::assertSame('Free colored females 26-45 years', $columns[30]->title()); + self::assertSame('Free colored females 45+ years', $columns[31]->title()); } } |
