public function testMerchantId() { $this->client->setMerchantId(1337); $this->assertEquals(1337, $this->client->getMerchantId()); $this->client->setMerchantId(31337); $this->assertEquals(31337, $this->client->getMerchantId()); try { $this->client->setMerchantId('foobar'); $this->fail('Invalid merchantId could be set'); } catch (Exception $exception) { } }