Skip to content

Commit 3d9b507

Browse files
committed
Fix data provider array
1 parent a0f23cb commit 3d9b507

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

tests/React/Promise/DeferredProgressTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public function shouldAllowRejectAfterProgress()
317317
* @test
318318
* @dataProvider typesDataProvider
319319
**/
320-
public function shouldIgnoreNonFunctionsAndTriggerPHPNotice($var, $desc)
320+
public function shouldIgnoreNonFunctionsAndTriggerPHPNotice($var)
321321
{
322322
$this->setErrorHandler();
323323

tests/React/Promise/DeferredRejectTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function shouldForwardReasonWhenCallbackIsNull()
9090
* @test
9191
* @dataProvider typesDataProvider
9292
**/
93-
public function shouldIgnoreNonFunctionsAndTriggerPHPNotice($var, $desc)
93+
public function shouldIgnoreNonFunctionsAndTriggerPHPNotice($var)
9494
{
9595
$this->setErrorHandler();
9696

tests/React/Promise/DeferredResolveTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function shouldForwardValueWhenCallbackIsNull()
167167
* @test
168168
* @dataProvider typesDataProvider
169169
**/
170-
public function shouldIgnoreNonFunctionsAndTriggerPHPNotice($var, $desc)
170+
public function shouldIgnoreNonFunctionsAndTriggerPHPNotice($var)
171171
{
172172
$this->setErrorHandler();
173173

tests/React/Promise/TestCase.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ public function createCallableMock()
4444
public function typesDataProvider()
4545
{
4646
return array(
47-
array('', 'empty string'),
48-
array(true, 'true'),
49-
array(false, 'false'),
50-
array(new \stdClass, 'object'),
51-
array(1, 'truthy'),
52-
array(0, 'falsey')
47+
'empty string' => array(''),
48+
'true' => array(true),
49+
'false' => array(false),
50+
'object' => array(new \stdClass),
51+
'truthy' => array(1),
52+
'falsey' => array(0)
5353
);
5454
}
5555

0 commit comments

Comments
 (0)