/** * @param string $bankCode * @param string $city * @param string $name * @param string $zip * @param int $max * @return \Oneso\Ckonto\Webservice\Search\SearchResponse * @throws \Oneso\Ckonto\Webservice\Search\SearchException */ private function createRequest($bankCode = '12345678', $city = 'Berlin', $name = '', $zip = '', $max = 0) { return \Oneso\Ckonto\Webservice\Search\SearchRequest::request(\Oneso\Ckonto\Webservice\Objects\BankCode::fromCode($bankCode), \Oneso\Ckonto\Webservice\Objects\Location::fromCity($city), \Oneso\Ckonto\Webservice\Objects\Name::fromName($name), \Oneso\Ckonto\Webservice\Objects\Zip::fromZip($zip), \Oneso\Ckonto\Webservice\Objects\Max::fromValue($max)); }
/** @test */ public function it_returns_a_search_object() { $search = \Oneso\Ckonto\Webservice\Ckonto::search(\Oneso\Ckonto\Webservice\Objects\BankCode::fromCode('123456789'), \Oneso\Ckonto\Webservice\Objects\Location::fromCity('Berlin'), \Oneso\Ckonto\Webservice\Objects\Name::fromName(''), \Oneso\Ckonto\Webservice\Objects\Zip::fromZip(''), \Oneso\Ckonto\Webservice\Objects\Max::fromValue(0)); $this->assertTrue($search instanceof \Oneso\Ckonto\Webservice\Search\Search); }