Skip to content

Commit fc56559

Browse files
committed
Add missing setter to fluency test
1 parent 46867cb commit fc56559

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/ClassTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public function testSettersAreFluent($setter, $value)
5050
{
5151
$xdebug = new XdebugHandler('myapp');
5252

53-
$result = call_user_func_array(array($xdebug, $setter), array($value));
53+
$params = null !== $value ? array($value) : array();
54+
$result = call_user_func_array(array($xdebug, $setter), $params);
5455
$this->assertInstanceOf(get_class($xdebug), $result);
5556
}
5657

@@ -60,6 +61,7 @@ public function setterProvider()
6061
return array(
6162
'setLogger' => array('setLogger', new Logger()),
6263
'setMainScript' => array('setMainScript', '--'),
64+
'setPersistent' => array('setPersistent', null),
6365
);
6466
}
6567
}

0 commit comments

Comments
 (0)