summaryrefslogtreecommitdiff
path: root/tests/app/Census/RegisterOfWales1939Test.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/app/Census/RegisterOfWales1939Test.php')
-rw-r--r--tests/app/Census/RegisterOfWales1939Test.php95
1 files changed, 49 insertions, 46 deletions
diff --git a/tests/app/Census/RegisterOfWales1939Test.php b/tests/app/Census/RegisterOfWales1939Test.php
index 859f278965..62ae50b4be 100644
--- a/tests/app/Census/RegisterOfWales1939Test.php
+++ b/tests/app/Census/RegisterOfWales1939Test.php
@@ -19,55 +19,58 @@ namespace Fisharebest\Webtrees\Census;
/**
* Test harness for the class RegisterOfWales1939
*/
-class RegisterOfWales1939Test extends \PHPUnit\Framework\TestCase {
- /**
- * Test the census place and date
- *
- * @covers \Fisharebest\Webtrees\Census\RegisterOfWales1939
- */
- public function testPlaceAndDate() {
- $census = new RegisterOfWales1939;
+class RegisterOfWales1939Test extends \PHPUnit\Framework\TestCase
+{
+ /**
+ * Test the census place and date
+ *
+ * @covers \Fisharebest\Webtrees\Census\RegisterOfWales1939
+ */
+ public function testPlaceAndDate()
+ {
+ $census = new RegisterOfWales1939;
- $this->assertSame('Wales', $census->censusPlace());
- $this->assertSame('29 SEP 1939', $census->censusDate());
- }
+ $this->assertSame('Wales', $census->censusPlace());
+ $this->assertSame('29 SEP 1939', $census->censusDate());
+ }
- /**
- * Test the census columns
- *
- * @covers \Fisharebest\Webtrees\Census\RegisterOfWales1939
- * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumn
- */
- public function testColumns() {
- $census = new RegisterOfWales1939;
- $columns = $census->columns();
+ /**
+ * Test the census columns
+ *
+ * @covers \Fisharebest\Webtrees\Census\RegisterOfWales1939
+ * @covers \Fisharebest\Webtrees\Census\AbstractCensusColumn
+ */
+ public function testColumns()
+ {
+ $census = new RegisterOfWales1939;
+ $columns = $census->columns();
- $this->assertCount(8, $columns);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[0]);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[1]);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnSurnameGivenNames', $columns[2]);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[3]);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnSexMF', $columns[4]);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnBirthDayMonthSlashYear', $columns[5]);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnConditionEnglish', $columns[6]);
- $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnOccupation', $columns[7]);
+ $this->assertCount(8, $columns);
+ $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[0]);
+ $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[1]);
+ $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnSurnameGivenNames', $columns[2]);
+ $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnNull', $columns[3]);
+ $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnSexMF', $columns[4]);
+ $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnBirthDayMonthSlashYear', $columns[5]);
+ $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnConditionEnglish', $columns[6]);
+ $this->assertInstanceOf('Fisharebest\Webtrees\Census\CensusColumnOccupation', $columns[7]);
- $this->assertSame('Schedule', $columns[0]->abbreviation());
- $this->assertSame('SubNum', $columns[1]->abbreviation());
- $this->assertSame('Name', $columns[2]->abbreviation());
- $this->assertSame('Role', $columns[3]->abbreviation());
- $this->assertSame('Sex', $columns[4]->abbreviation());
- $this->assertSame('DOB', $columns[5]->abbreviation());
- $this->assertSame('MC', $columns[6]->abbreviation());
- $this->assertSame('Occupation', $columns[7]->abbreviation());
+ $this->assertSame('Schedule', $columns[0]->abbreviation());
+ $this->assertSame('SubNum', $columns[1]->abbreviation());
+ $this->assertSame('Name', $columns[2]->abbreviation());
+ $this->assertSame('Role', $columns[3]->abbreviation());
+ $this->assertSame('Sex', $columns[4]->abbreviation());
+ $this->assertSame('DOB', $columns[5]->abbreviation());
+ $this->assertSame('MC', $columns[6]->abbreviation());
+ $this->assertSame('Occupation', $columns[7]->abbreviation());
- $this->assertSame('Schedule Number', $columns[0]->title());
- $this->assertSame('Schedule Sub Number', $columns[1]->title());
- $this->assertSame('Surname & other names', $columns[2]->title());
- $this->assertSame('For institutions only – for example, Officer, Visitor, Servant, Patient, Inmate', $columns[3]->title());
- $this->assertSame('Male or Female', $columns[4]->title());
- $this->assertSame('Date of birth', $columns[5]->title());
- $this->assertSame('Marital Condition - Married, Single, Unmarried, Widowed or Divorced', $columns[6]->title());
- $this->assertSame('Occupation', $columns[7]->title());
- }
+ $this->assertSame('Schedule Number', $columns[0]->title());
+ $this->assertSame('Schedule Sub Number', $columns[1]->title());
+ $this->assertSame('Surname & other names', $columns[2]->title());
+ $this->assertSame('For institutions only – for example, Officer, Visitor, Servant, Patient, Inmate', $columns[3]->title());
+ $this->assertSame('Male or Female', $columns[4]->title());
+ $this->assertSame('Date of birth', $columns[5]->title());
+ $this->assertSame('Marital Condition - Married, Single, Unmarried, Widowed or Divorced', $columns[6]->title());
+ $this->assertSame('Occupation', $columns[7]->title());
+ }
}