public static function providerGetSetMaxAttempts() { return [[1
],
[5
],
[null
]];
} /**
* @dataProvider providerGetSetMaxAttempts
*/
public function testGetSetMaxAttempts($attempts) { $this->question->
setMaxAttempts($attempts);
self::
assertSame($attempts,
$this->question->
getMaxAttempts());
} public static function providerSetMaxAttemptsInvalid() { return [[0
],
[-1
]];
} /**
* @dataProvider providerSetMaxAttemptsInvalid
*/
public function testSetMaxAttemptsInvalid($attempts) {