public function testCaseAllSetStateMethods_CallsModelMethod($switcher)
{
$test = $this->getTest();
$promise = $test->getMock(Promise::class, [], [], '', false);
$method = $switcher;
$model = $test->getMock(RuntimeModel::class, [], [], '', false);
$model->expects($test->once())->method($method)->will($test->returnValue($promise));
$runtime = $this->createRuntime();
$test->setProtectedProperty($runtime, 'model', $model);
$result = call_user_func([$runtime, $method]);
$test->assertSame($promise, $result);
}