Bitpay\SinKeyTest::testGenerateWithoutException PHP Method

testGenerateWithoutException() public method

    public function testGenerateWithoutException()
    {
        $pubKey = PublicKey::create();
        $this->assertNotNull($pubKey);
        $pubKey->setPrivateKey(PrivateKey::create()->generate());
        $pubKey->generate();
        $sinKey = new SinKey();
        $this->assertNotNull($sinKey);
        $sinKey->setPublicKey($pubKey);
        $sinKey->generate();
        $this->assertEquals(35, strlen((string) $sinKey));
    }