setExpectedException($ex); $this->assertEquals($expected, read_raw_message($url)); } public function provider_read_raw_message() { return array( array(__DIR__ . '/empty', null, 'Exception'), array(__DIR__ . '/bougs', null, 'Exception'), array(__DIR__ . '/1', file_get_contents(__DIR__ . '/1'), null), ); } } ?>