X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2FErrorsTest.php;fp=tests%2FErrorsTest.php;h=b99fe928313ae8212b0394cbb521265cb893faff;hb=e368287b3cd2dd40945ac8d1a1946bc32268007d;hp=0000000000000000000000000000000000000000;hpb=f4aa6beaf2e1f0dc9c877782cbbad5a989194517;p=m6w6%2Fseekat diff --git a/tests/ErrorsTest.php b/tests/ErrorsTest.php new file mode 100644 index 0000000..b99fe92 --- /dev/null +++ b/tests/ErrorsTest.php @@ -0,0 +1,29 @@ +users->m6w6(); + + if (!$api->getFuture()->cancelPromise($promise)) { + return; + } + + $this->assertCancelled($promise); + } + + /** + * @dataProvider provideAPI + */ + function test404($api) { + $error = $this->assertFailure($api->generate->a404); + $this->assertEquals($error->getMessage(), "Not Found"); + } +}