/** * @dataProvider mockProvider * @param AddressClient $obj * @param PHPUnit_Framework_MockObject_MockObject|ApiContext $mockApiContext * @param PHPUnit_Framework_MockObject_MockObject|BlockCypherRestCall $mockBlockCypherRestCall * @expectedException \InvalidArgumentException */ public function testGenerateMultisigAddressValidationForPubkeys($obj, $mockApiContext, $mockBlockCypherRestCall) { $mockBlockCypherRestCall->expects($this->any())->method('execute')->will($this->returnValue(AddressKeyChainTest::getJson())); $pubkeys = 'NOT ARRAY'; $scriptType = AddressKeyChainTest::getObject()->getScriptType(); $result = $obj->generateMultisigAddress($pubkeys, $scriptType, $mockApiContext, $mockBlockCypherRestCall); $this->assertNotNull($result); }