/** * @param EntityId $from * @param EntityId $to * @param EditInfo|null $editInfo * * @return bool */ public function create(EntityId $from, EntityId $to, EditInfo $editInfo = null) { $params = array('from' => $from->__toString(), 'to' => $to->__toString()); $this->api->postRequest('wbcreateredirect', $params, $editInfo); return true; }
/** * @dataProvider instanceProvider */ public function testReturnTypeOfToString(EntityId $id) { $this->assertInternalType('string', $id->__toString()); }