3 class ErrorsTest
extends BaseTest
10 * @dataProvider provideAPI
12 function testCancellation($api) {
13 $promise = $api->users
->m6w6();
15 if (!$api->getFuture()->cancelPromise($promise)) {
19 $this->assertCancelled($promise);
23 * @dataProvider provideAPI
25 function test404($api) {
26 $error = $this->assertFailure($api->generate
->a404
);
27 $this->assertEquals($error->getMessage(), "Not Found");