/** * @dataProvider additionProvider */ public function testCheck($email, $mobile, $passwd, $confirm_passwd, $code, $expect) { $register = new User_Register(); $return = $register->check($email, $mobile, $passwd, $confirm_passwd, $code, $expect); $this->assertEquals($expect, $return['status']); //$this->expectOutputString('1'); //print "{$return['status']}"; //$this->assertEquals($expected, $a + $b); }