setExpectedException($ex); $run = 'get_user_id("' . $from . '")'; $this->assertEquals($expected, $this->exec_kludge($run)); } public function provider_get_user_id() { return array( array('bogus', null, 'PHPUnit_Framework_Error'), array('uckelman@nomic.net', 2, null) ); } }