X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=phpunit%2FDataShareTest.php;h=f4a0453c6163c1d968b7ec5c5650774a879a08a5;hp=0a5072780f5c9f26843defce1c2b95a63c63ffad;hb=05ae9a5d01e29d7174152b1b46a5af09833d71ef;hpb=575f4ce7a82c2c2bf4fb597f6a3a3de077403910 diff --git a/phpunit/DataShareTest.php b/phpunit/DataShareTest.php index 0a50727..f4a0453 100644 --- a/phpunit/DataShareTest.php +++ b/phpunit/DataShareTest.php @@ -1,5 +1,11 @@ detach($client); $share->reset(); } + + function testCurlIncompatible() { + $client = new UserClient; + $client->setRequest(new http\Client\Request("GET", "https://twitter.com")); + + $share = new http\Curl\Client\DataShare; + $this->setExpectedException("PHPUnit_Framework_Error_Warning"); + $share->attach($client); + $this->setExpectedException("PHPUnit_Framework_Error_Warning"); + $share->detach($client); + } }