diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2024-03-26 12:20:49 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2024-03-31 17:33:17 +0100 |
| commit | 62ff2f188c699b1144fb2ca2d6da1358d5e1a745 (patch) | |
| tree | d6024ac95536795bc85e1ea6e83434963761feaf /tests/app/SurnameTradition/SpanishSurnameTraditionTest.php | |
| parent | 234e0863a607ff8e5f8e78a7fefe5366f39f8ebf (diff) | |
| download | webtrees-62ff2f188c699b1144fb2ca2d6da1358d5e1a745.tar.gz webtrees-62ff2f188c699b1144fb2ca2d6da1358d5e1a745.tar.bz2 webtrees-62ff2f188c699b1144fb2ca2d6da1358d5e1a745.zip | |
PHPUnit 11 deprecates createStub() - use createMock() instead
Diffstat (limited to 'tests/app/SurnameTradition/SpanishSurnameTraditionTest.php')
| -rw-r--r-- | tests/app/SurnameTradition/SpanishSurnameTraditionTest.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/app/SurnameTradition/SpanishSurnameTraditionTest.php b/tests/app/SurnameTradition/SpanishSurnameTraditionTest.php index ff3d0eea18..ad57fd6fa2 100644 --- a/tests/app/SurnameTradition/SpanishSurnameTraditionTest.php +++ b/tests/app/SurnameTradition/SpanishSurnameTraditionTest.php @@ -44,16 +44,16 @@ class SpanishSurnameTraditionTest extends TestCase */ public function testNewChildNames(): void { - $father_fact = $this->createStub(Fact::class); + $father_fact = $this->createMock(Fact::class); $father_fact->method('value')->willReturn('Gabriel /Garcia/ /Iglesias/'); - $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('Gabriel /Ruiz/ /Lorca/'); - $mother = $this->createStub(Individual::class); + $mother = $this->createMock(Individual::class); $mother->method('facts')->willReturn(new Collection([$mother_fact])); self::assertSame( @@ -88,16 +88,16 @@ class SpanishSurnameTraditionTest extends TestCase */ public function testNewChildNamesCompound(): void { - $father_fact = $this->createStub(Fact::class); + $father_fact = $this->createMock(Fact::class); $father_fact->method('value')->willReturn('Gabriel /Garcia/ y /Iglesias/'); - $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('Gabriel /Ruiz/ y /Lorca/'); - $mother = $this->createStub(Individual::class); + $mother = $this->createMock(Individual::class); $mother->method('facts')->willReturn(new Collection([$mother_fact])); self::assertSame( @@ -111,10 +111,10 @@ class SpanishSurnameTraditionTest extends TestCase */ public function testNewParentNames(): void { - $fact = $this->createStub(Fact::class); + $fact = $this->createMock(Fact::class); $fact->method('value')->willReturn('Gabriel /Garcia/ /Iglesias/'); - $individual = $this->createStub(Individual::class); + $individual = $this->createMock(Individual::class); $individual->method('facts')->willReturn(new Collection([$fact])); self::assertSame( @@ -138,10 +138,10 @@ class SpanishSurnameTraditionTest extends TestCase */ public function testNewSpouseNames(): void { - $fact = $this->createStub(Fact::class); + $fact = $this->createMock(Fact::class); $fact->method('value')->willReturn('Gabriel /Garcia/ /Iglesias/'); - $individual = $this->createStub(Individual::class); + $individual = $this->createMock(Individual::class); $individual->method('facts')->willReturn(new Collection([$fact])); self::assertSame( |
