Skip to content

Commit afcfecb

Browse files
committed
MC-2338: 3rd party library/dependency upgrade for 2.3 pre Alpha
1 parent 21f68dd commit afcfecb

File tree

23 files changed

+61
-61
lines changed

23 files changed

+61
-61
lines changed

app/code/Magento/Analytics/Test/Unit/ReportXml/DB/ReportValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ protected function setUp()
7979
* @dataProvider errorDataProvider
8080
* @param string $reportName
8181
* @param array $result
82-
* @param \PHPUnit_Framework_MockObject_Stub $queryReturnStub
82+
* @param \PHPUnit\Framework\MockObject\Stub $queryReturnStub
8383
*/
84-
public function testValidate($reportName, $result, \PHPUnit_Framework_MockObject_Stub $queryReturnStub)
84+
public function testValidate($reportName, $result, \PHPUnit\Framework\MockObject\Stub $queryReturnStub)
8585
{
8686
$connectionName = 'testConnection';
8787
$this->queryFactoryMock->expects($this->once())

app/code/Magento/Checkout/Test/Unit/Controller/Index/IndexTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
use Magento\Customer\Model\Session;
1111
use Magento\Framework\App\Request\Http;
1212
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
13-
use PHPUnit_Framework_MockObject_Builder_InvocationMocker as InvocationMocker;
14-
use PHPUnit_Framework_MockObject_Matcher_InvokedCount as InvokedCount;
13+
use PHPUnit\Framework\MockObject\Builder\InvocationMocker as InvocationMocker;
14+
use PHPUnit\Framework\MockObject\Matcher\InvokedCount as InvokedCount;
1515
use PHPUnit_Framework_MockObject_MockObject as MockObject;
1616
use Magento\Checkout\Helper\Data;
1717
use Magento\Quote\Model\Quote;

app/code/Magento/Config/Test/Unit/Console/Command/ConfigShow/ValueProcessorTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ protected function setUp()
7373

7474
/**
7575
* @param bool $hasBackendModel
76-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expectsGetBackendModel
77-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expectsCreate
78-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expectsGetValue
79-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expectsSetPath
80-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expectsSetScope
81-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expectsSetScopeId
82-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expectsSetValue
83-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expectsAfterLoad
84-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expectsSerialize
76+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $expectsGetBackendModel
77+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $expectsCreate
78+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $expectsGetValue
79+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $expectsSetPath
80+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $expectsSetScope
81+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $expectsSetScopeId
82+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $expectsSetValue
83+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $expectsAfterLoad
84+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $expectsSerialize
8585
* @param string $expectsValue
8686
* @param string $className
8787
* @param string $value

app/code/Magento/Config/Test/Unit/Model/Config/Structure/ElementVisibilityCompositeTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public function testException()
5151
}
5252

5353
/**
54-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $firstExpects
54+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $firstExpects
5555
* @param bool $firstResult
56-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $secondExpects
56+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $secondExpects
5757
* @param bool $secondResult
5858
* @param bool $expectedResult
5959
* @dataProvider visibilityDataProvider
@@ -74,9 +74,9 @@ public function testDisabled($firstExpects, $firstResult, $secondExpects, $secon
7474
}
7575

7676
/**
77-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $firstExpects
77+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $firstExpects
7878
* @param bool $firstResult
79-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $secondExpects
79+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $secondExpects
8080
* @param bool $secondResult
8181
* @param bool $expectedResult
8282
* @dataProvider visibilityDataProvider

app/code/Magento/Downloadable/Test/Unit/Ui/DataProvider/Product/Form/Modifier/Data/LinksTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ protected function setUp()
9898
/**
9999
* @param int|null $id
100100
* @param string $typeId
101-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expectedGetTitle
102-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expectedGetValue
101+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $expectedGetTitle
102+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $expectedGetValue
103103
* @return void
104104
* @dataProvider getLinksTitleDataProvider
105105
*/

app/code/Magento/Persistent/Test/Unit/Observer/CheckExpirePersistentQuoteObserverTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,18 @@ public function testExecuteWhenPersistentIsNotEnabled()
113113
*
114114
* @param string $refererUri
115115
* @param string $requestUri
116-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expireCounter
117-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $dispatchCounter
118-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $setCustomerIdCounter
116+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $expireCounter
117+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $dispatchCounter
118+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $setCustomerIdCounter
119119
* @return void
120120
* @dataProvider requestDataProvider
121121
*/
122122
public function testExecuteWhenPersistentIsEnabled(
123123
string $refererUri,
124124
string $requestUri,
125-
\PHPUnit_Framework_MockObject_Matcher_InvokedCount $expireCounter,
126-
\PHPUnit_Framework_MockObject_Matcher_InvokedCount $dispatchCounter,
127-
\PHPUnit_Framework_MockObject_Matcher_InvokedCount $setCustomerIdCounter
125+
\PHPUnit\Framework\MockObject\Matcher\InvokedCount $expireCounter,
126+
\PHPUnit\Framework\MockObject\Matcher\InvokedCount $dispatchCounter,
127+
\PHPUnit\Framework\MockObject\Matcher\InvokedCount $setCustomerIdCounter
128128
): void {
129129
$this->persistentHelperMock
130130
->expects($this->once())

app/code/Magento/Reports/Test/Unit/Model/ResourceModel/Order/CollectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function testCheckIsLive()
202202
* @param int $useAggregatedData
203203
* @param string $mainTable
204204
* @param int $isFilter
205-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $getIfNullSqlResult
205+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $getIfNullSqlResult
206206
* @dataProvider useAggregatedDataDataProvider
207207
* @return void
208208
*/
@@ -309,7 +309,7 @@ public function testAddItemCountExpr()
309309
* @param int $isFilter
310310
* @param int $useAggregatedData
311311
* @param string $mainTable
312-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $getIfNullSqlResult
312+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $getIfNullSqlResult
313313
* @dataProvider totalsDataProvider
314314
* @return void
315315
*/

app/code/Magento/Reports/Test/Unit/Model/ResourceModel/Report/Product/ViewedTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ function ($arg) {
190190
/**
191191
* @param mixed $from
192192
* @param mixed $to
193-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $truncateCount
194-
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $deleteCount
193+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $truncateCount
194+
* @param \PHPUnit\Framework\MockObject\Matcher\InvokedCount $deleteCount
195195
* @dataProvider intervalsDataProvider
196196
* @return void
197197
*/

app/code/Magento/Sales/Test/Unit/Model/Order/Email/Sender/AbstractSenderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ public function stepIdentityContainerInit($identityMockClassName)
157157
}
158158

159159
protected function stepSend(
160-
\PHPUnit_Framework_MockObject_Matcher_InvokedCount $sendExpects,
161-
\PHPUnit_Framework_MockObject_Matcher_InvokedCount $sendCopyToExpects
160+
\PHPUnit\Framework\MockObject\Matcher\InvokedCount $sendExpects,
161+
\PHPUnit\Framework\MockObject\Matcher\InvokedCount $sendCopyToExpects
162162
) {
163163
$senderMock = $this->createPartialMock(\Magento\Sales\Model\Order\Email\Sender::class, ['send', 'sendCopyTo']);
164164
$senderMock->expects($sendExpects)

lib/internal/Magento/Framework/File/Size.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function getUploadMaxSize()
5656
* @param int $mode
5757
* @return float
5858
*/
59-
public function getMaxFileSizeInMb($precision = 0, $mode = PHP_ROUND_HALF_DOWN)
59+
public function getMaxFileSizeInMb($precision = 0, $mode = \PHP_ROUND_HALF_DOWN)
6060
{
6161
return $this->getFileSizeInMb($this->getMaxFileSize(), $precision, $mode);
6262
}
@@ -69,7 +69,7 @@ public function getMaxFileSizeInMb($precision = 0, $mode = PHP_ROUND_HALF_DOWN)
6969
* @param int $mode
7070
* @return float
7171
*/
72-
public function getFileSizeInMb($fileSize, $precision = 0, $mode = PHP_ROUND_HALF_DOWN)
72+
public function getFileSizeInMb($fileSize, $precision = 0, $mode = \PHP_ROUND_HALF_DOWN)
7373
{
7474
return round($fileSize / (1024 * 1024), $precision, $mode);
7575
}

0 commit comments

Comments
 (0)