Skip to content

Commit 23cd9b9

Browse files
committed
Merge branch '6.4' into 7.3
* 6.4: do not use PHPUnit mock objects without configured expectations do not use PHPUnit mock objects without configured expectations do not use PHPUnit mock objects without configured expectations do not use PHPUnit mock objects without configured expectations do not use PHPUnit mock objects without configured expectations do not use PHPUnit mock objects without configured expectations
2 parents b240abc + 6dfa655 commit 23cd9b9

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Tests/PropertyAccessorBuilderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function testUseCache()
100100

101101
public function testUseReadInfoExtractor()
102102
{
103-
$readInfoExtractor = $this->createMock(PropertyReadInfoExtractorInterface::class);
103+
$readInfoExtractor = $this->createStub(PropertyReadInfoExtractorInterface::class);
104104

105105
$this->builder->setReadInfoExtractor($readInfoExtractor);
106106

@@ -110,7 +110,7 @@ public function testUseReadInfoExtractor()
110110

111111
public function testUseWriteInfoExtractor()
112112
{
113-
$writeInfoExtractor = $this->createMock(PropertyWriteInfoExtractorInterface::class);
113+
$writeInfoExtractor = $this->createStub(PropertyWriteInfoExtractorInterface::class);
114114

115115
$this->builder->setWriteInfoExtractor($writeInfoExtractor);
116116

Tests/PropertyAccessorCollectionTestCase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ public function testSetValueCallsAdderAndRemoverForCollections()
123123

124124
public function testSetValueCallsAdderAndRemoverForNestedCollections()
125125
{
126-
$car = $this->createMock(__CLASS__.'_CompositeCar');
126+
$car = $this->createStub(__CLASS__.'_CompositeCar');
127127
$structure = $this->createMock(__CLASS__.'_CarStructure');
128128
$axesBefore = $this->getContainer([1 => 'second', 3 => 'fourth']);
129129
$axesAfter = $this->getContainer([0 => 'first', 1 => 'second', 2 => 'third']);
130130

131-
$car->expects($this->any())
131+
$car
132132
->method('getStructure')
133133
->willReturn($structure);
134134

@@ -156,11 +156,11 @@ public function testSetValueCallsAdderAndRemoverForNestedCollections()
156156

157157
public function testSetValueFailsIfNoAdderNorRemoverFound()
158158
{
159-
$car = $this->createMock(__CLASS__.'_CarNoAdderAndRemover');
159+
$car = $this->createStub(__CLASS__.'_CarNoAdderAndRemover');
160160
$axesBefore = $this->getContainer([1 => 'second', 3 => 'fourth']);
161161
$axesAfter = $this->getContainer([0 => 'first', 1 => 'second', 2 => 'third']);
162162

163-
$car->expects($this->any())
163+
$car
164164
->method('getAxes')
165165
->willReturn($axesBefore);
166166

0 commit comments

Comments
 (0)