tests/Adapters/BuzzConnectorTest.php 1 location
|
@@ 25-32 (lines=8) @@
|
| 22 |
|
*/ |
| 23 |
|
class BuzzConnectorTest extends AbstractTestCase |
| 24 |
|
{ |
| 25 |
|
public function testConnectStandard() |
| 26 |
|
{ |
| 27 |
|
$connector = $this->getBuzzConnector(); |
| 28 |
|
|
| 29 |
|
$return = $connector->connect(['username' => 'your-username', 'password' => 'your-password', 'accept' => 'application/json']); |
| 30 |
|
|
| 31 |
|
$this->assertInstanceOf(BuzzAdapter::class, $return); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
/** |
| 35 |
|
* @expectedException \InvalidArgumentException |
tests/Adapters/ConnectionFactoryTest.php 1 location
|
@@ 31-38 (lines=8) @@
|
| 28 |
|
*/ |
| 29 |
|
class ConnectionFactoryTest extends AbstractTestCase |
| 30 |
|
{ |
| 31 |
|
public function testMake() |
| 32 |
|
{ |
| 33 |
|
$factory = $this->getMockedFactory(); |
| 34 |
|
|
| 35 |
|
$return = $factory->make(['driver' => 'guzzlehttp', 'username' => 'your-username', 'password' => 'your-password', 'accept' => 'application/json']); |
| 36 |
|
|
| 37 |
|
$this->assertInstanceOf(AdapterInterface::class, $return); |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
public function createDataProvider() |
| 41 |
|
{ |
tests/Adapters/GuzzleConnectorTest.php 1 location
|
@@ 25-32 (lines=8) @@
|
| 22 |
|
*/ |
| 23 |
|
class GuzzleConnectorTest extends AbstractTestCase |
| 24 |
|
{ |
| 25 |
|
public function testConnectStandard() |
| 26 |
|
{ |
| 27 |
|
$connector = $this->getGuzzleConnector(); |
| 28 |
|
|
| 29 |
|
$return = $connector->connect(['username' => 'your-username', 'password' => 'your-password', 'accept' => 'application/json']); |
| 30 |
|
|
| 31 |
|
$this->assertInstanceOf(GuzzleAdapter::class, $return); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
/** |
| 35 |
|
* @expectedException \InvalidArgumentException |
tests/Adapters/GuzzleHttpConnectorTest.php 1 location
|
@@ 25-32 (lines=8) @@
|
| 22 |
|
*/ |
| 23 |
|
class GuzzleHttpConnectorTest extends AbstractTestCase |
| 24 |
|
{ |
| 25 |
|
public function testConnectStandard() |
| 26 |
|
{ |
| 27 |
|
$connector = $this->getGuzzleHttpConnector(); |
| 28 |
|
|
| 29 |
|
$return = $connector->connect(['username' => 'your-username', 'password' => 'your-password', 'accept' => 'application/json']); |
| 30 |
|
|
| 31 |
|
$this->assertInstanceOf(GuzzleHttpAdapter::class, $return); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
/** |
| 35 |
|
* @expectedException \InvalidArgumentException |