summaryrefslogtreecommitdiff
path: root/tests/app/SurnameTradition/PolishSurnameTraditionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/app/SurnameTradition/PolishSurnameTraditionTest.php')
-rw-r--r--tests/app/SurnameTradition/PolishSurnameTraditionTest.php88
1 files changed, 44 insertions, 44 deletions
diff --git a/tests/app/SurnameTradition/PolishSurnameTraditionTest.php b/tests/app/SurnameTradition/PolishSurnameTraditionTest.php
index 7bbc701e10..eb25f62a4d 100644
--- a/tests/app/SurnameTradition/PolishSurnameTraditionTest.php
+++ b/tests/app/SurnameTradition/PolishSurnameTraditionTest.php
@@ -45,16 +45,16 @@ class PolishSurnameTraditionTest extends TestCase
*/
public function testNewSonNames(): void
{
- $father_fact = $this->createStub(Fact::class);
+ $father_fact = $this->createMock(Fact::class);
$father_fact->method('value')->willReturn('John /White/');
- $father = $this->createStub(Individual::class);
+ $father = $this->createMock(Individual::class);
$father->method('facts')->willReturn(new Collection([$father_fact]));
- $mother_fact = $this->createStub(Fact::class);
+ $mother_fact = $this->createMock(Fact::class);
$mother_fact->method('value')->willReturn('Mary /Black/');
- $mother = $this->createStub(Individual::class);
+ $mother = $this->createMock(Individual::class);
$mother->method('facts')->willReturn(new Collection([$mother_fact]));
self::assertSame(
@@ -68,16 +68,16 @@ class PolishSurnameTraditionTest extends TestCase
*/
public function testNewDaughterNames(): void
{
- $father_fact = $this->createStub(Fact::class);
+ $father_fact = $this->createMock(Fact::class);
$father_fact->method('value')->willReturn('John /White/');
- $father = $this->createStub(Individual::class);
+ $father = $this->createMock(Individual::class);
$father->method('facts')->willReturn(new Collection([$father_fact]));
- $mother_fact = $this->createStub(Fact::class);
+ $mother_fact = $this->createMock(Fact::class);
$mother_fact->method('value')->willReturn('Mary /Black/');
- $mother = $this->createStub(Individual::class);
+ $mother = $this->createMock(Individual::class);
$mother->method('facts')->willReturn(new Collection([$mother_fact]));
self::assertSame(
@@ -91,16 +91,16 @@ class PolishSurnameTraditionTest extends TestCase
*/
public function testNewDaughterNamesInflected(): void
{
- $father_fact = $this->createStub(Fact::class);
+ $father_fact = $this->createMock(Fact::class);
$father_fact->method('value')->willReturn('John /Whitecki/');
- $father = $this->createStub(Individual::class);
+ $father = $this->createMock(Individual::class);
$father->method('facts')->willReturn(new Collection([$father_fact]));
- $mother_fact = $this->createStub(Fact::class);
+ $mother_fact = $this->createMock(Fact::class);
$mother_fact->method('value')->willReturn('Mary /Black/');
- $mother = $this->createStub(Individual::class);
+ $mother = $this->createMock(Individual::class);
$mother->method('facts')->willReturn(new Collection([$mother_fact]));
self::assertSame(
@@ -108,16 +108,16 @@ class PolishSurnameTraditionTest extends TestCase
$this->surname_tradition->newChildNames($father, $mother, 'F')
);
- $father_fact = $this->createStub(Fact::class);
+ $father_fact = $this->createMock(Fact::class);
$father_fact->method('value')->willReturn('John /Whitedzki/');
- $father = $this->createStub(Individual::class);
+ $father = $this->createMock(Individual::class);
$father->method('facts')->willReturn(new Collection([$father_fact]));
- $mother_fact = $this->createStub(Fact::class);
+ $mother_fact = $this->createMock(Fact::class);
$mother_fact->method('value')->willReturn('Mary /Black/');
- $mother = $this->createStub(Individual::class);
+ $mother = $this->createMock(Individual::class);
$mother->method('facts')->willReturn(new Collection([$mother_fact]));
self::assertSame(
@@ -125,16 +125,16 @@ class PolishSurnameTraditionTest extends TestCase
$this->surname_tradition->newChildNames($father, $mother, 'F')
);
- $father_fact = $this->createStub(Fact::class);
+ $father_fact = $this->createMock(Fact::class);
$father_fact->method('value')->willReturn('John /Whiteski/');
- $father = $this->createStub(Individual::class);
+ $father = $this->createMock(Individual::class);
$father->method('facts')->willReturn(new Collection([$father_fact]));
- $mother_fact = $this->createStub(Fact::class);
+ $mother_fact = $this->createMock(Fact::class);
$mother_fact->method('value')->willReturn('Mary /Black/');
- $mother = $this->createStub(Individual::class);
+ $mother = $this->createMock(Individual::class);
$mother->method('facts')->willReturn(new Collection([$mother_fact]));
self::assertSame(
@@ -142,16 +142,16 @@ class PolishSurnameTraditionTest extends TestCase
$this->surname_tradition->newChildNames($father, $mother, 'F')
);
- $father_fact = $this->createStub(Fact::class);
+ $father_fact = $this->createMock(Fact::class);
$father_fact->method('value')->willReturn('John /Whiteżki/');
- $father = $this->createStub(Individual::class);
+ $father = $this->createMock(Individual::class);
$father->method('facts')->willReturn(new Collection([$father_fact]));
- $mother_fact = $this->createStub(Fact::class);
+ $mother_fact = $this->createMock(Fact::class);
$mother_fact->method('value')->willReturn('Mary /Black/');
- $mother = $this->createStub(Individual::class);
+ $mother = $this->createMock(Individual::class);
$mother->method('facts')->willReturn(new Collection([$mother_fact]));
self::assertSame(
@@ -165,16 +165,16 @@ class PolishSurnameTraditionTest extends TestCase
*/
public function testNewChildNames(): void
{
- $father_fact = $this->createStub(Fact::class);
+ $father_fact = $this->createMock(Fact::class);
$father_fact->method('value')->willReturn('John /White/');
- $father = $this->createStub(Individual::class);
+ $father = $this->createMock(Individual::class);
$father->method('facts')->willReturn(new Collection([$father_fact]));
- $mother_fact = $this->createStub(Fact::class);
+ $mother_fact = $this->createMock(Fact::class);
$mother_fact->method('value')->willReturn('Mary /Black/');
- $mother = $this->createStub(Individual::class);
+ $mother = $this->createMock(Individual::class);
$mother->method('facts')->willReturn(new Collection([$mother_fact]));
self::assertSame(
@@ -199,10 +199,10 @@ class PolishSurnameTraditionTest extends TestCase
*/
public function testNewFatherNames(): void
{
- $fact = $this->createStub(Fact::class);
+ $fact = $this->createMock(Fact::class);
$fact->method('value')->willReturn('Chris /White/');
- $individual = $this->createStub(Individual::class);
+ $individual = $this->createMock(Individual::class);
$individual->method('facts')->willReturn(new Collection([$fact]));
self::assertSame(
@@ -216,10 +216,10 @@ class PolishSurnameTraditionTest extends TestCase
*/
public function testNewFatherNamesInflected(): void
{
- $fact = $this->createStub(Fact::class);
+ $fact = $this->createMock(Fact::class);
$fact->method('value')->willReturn('Chris /Whitecka/');
- $individual = $this->createStub(Individual::class);
+ $individual = $this->createMock(Individual::class);
$individual->method('facts')->willReturn(new Collection([$fact]));
self::assertSame(
@@ -227,10 +227,10 @@ class PolishSurnameTraditionTest extends TestCase
$this->surname_tradition->newParentNames($individual, 'M')
);
- $fact = $this->createStub(Fact::class);
+ $fact = $this->createMock(Fact::class);
$fact->method('value')->willReturn('Chris /Whitedzka/');
- $individual = $this->createStub(Individual::class);
+ $individual = $this->createMock(Individual::class);
$individual->method('facts')->willReturn(new Collection([$fact]));
self::assertSame(
@@ -238,10 +238,10 @@ class PolishSurnameTraditionTest extends TestCase
$this->surname_tradition->newParentNames($individual, 'M')
);
- $fact = $this->createStub(Fact::class);
+ $fact = $this->createMock(Fact::class);
$fact->method('value')->willReturn('Chris /Whiteska/');
- $individual = $this->createStub(Individual::class);
+ $individual = $this->createMock(Individual::class);
$individual->method('facts')->willReturn(new Collection([$fact]));
self::assertSame(
@@ -249,10 +249,10 @@ class PolishSurnameTraditionTest extends TestCase
$this->surname_tradition->newParentNames($individual, 'M')
);
- $fact = $this->createStub(Fact::class);
+ $fact = $this->createMock(Fact::class);
$fact->method('value')->willReturn('Chris /Whiteżka/');
- $individual = $this->createStub(Individual::class);
+ $individual = $this->createMock(Individual::class);
$individual->method('facts')->willReturn(new Collection([$fact]));
self::assertSame(
@@ -266,10 +266,10 @@ class PolishSurnameTraditionTest extends TestCase
*/
public function testNewMotherNames(): void
{
- $fact = $this->createStub(Fact::class);
+ $fact = $this->createMock(Fact::class);
$fact->method('value')->willReturn('Chris /White/');
- $individual = $this->createStub(Individual::class);
+ $individual = $this->createMock(Individual::class);
$individual->method('facts')->willReturn(new Collection([$fact]));
self::assertSame(
@@ -283,10 +283,10 @@ class PolishSurnameTraditionTest extends TestCase
*/
public function testNewParentNames(): void
{
- $fact = $this->createStub(Fact::class);
+ $fact = $this->createMock(Fact::class);
$fact->method('value')->willReturn('Chris /White/');
- $individual = $this->createStub(Individual::class);
+ $individual = $this->createMock(Individual::class);
$individual->method('facts')->willReturn(new Collection([$fact]));
self::assertSame(
@@ -300,10 +300,10 @@ class PolishSurnameTraditionTest extends TestCase
*/
public function testNewSpouseNames(): void
{
- $fact = $this->createStub(Fact::class);
+ $fact = $this->createMock(Fact::class);
$fact->method('value')->willReturn('Chris /White/');
- $individual = $this->createStub(Individual::class);
+ $individual = $this->createMock(Individual::class);
$individual->method('facts')->willReturn(new Collection([$fact]));
self::assertSame(