|
|
|
@ -261,7 +261,8 @@ class EndToEndTest extends PHPUnit_Framework_TestCase |
|
|
|
|
Grpc\OP_SEND_INITIAL_METADATA => [], |
|
|
|
|
Grpc\OP_SEND_CLOSE_FROM_CLIENT => true, |
|
|
|
|
Grpc\OP_SEND_MESSAGE => ['message' => 'abc', |
|
|
|
|
'flags' => 'invalid'], |
|
|
|
|
'flags' => 'invalid', |
|
|
|
|
], |
|
|
|
|
]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -574,7 +575,7 @@ class EndToEndTest extends PHPUnit_Framework_TestCase |
|
|
|
|
public function testGetConnectivityStateInvalidParam() |
|
|
|
|
{ |
|
|
|
|
$this->assertTrue($this->channel->getConnectivityState( |
|
|
|
|
new Grpc\Timeval)); |
|
|
|
|
new Grpc\Timeval())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -591,12 +592,11 @@ class EndToEndTest extends PHPUnit_Framework_TestCase |
|
|
|
|
*/ |
|
|
|
|
public function testChannelConstructorInvalidParam() |
|
|
|
|
{ |
|
|
|
|
$this->channel = new Grpc\Channel('localhost:'.$this->port, NULL); |
|
|
|
|
$this->channel = new Grpc\Channel('localhost:'.$this->port, null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function testClose() |
|
|
|
|
{ |
|
|
|
|
$this->assertNull($this->channel->close()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|