colly_wyx
2018-04-27 74adf3a72663f151dc2c1b87ecb4ea4b0e080a50
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
 * PhpUnderControl_PhalApiCryptRSAPub2Pri_Test
 *
 * 针对 ../../../PhalApi/Crypt/RSA/Pub2Pri.php PhalApi_Crypt_RSA_Pub2Pri 类的PHPUnit单元测试
 *
 * @author: dogstar 20150314
 */
 
require_once dirname(__FILE__) . '/PhalApi_Crypt_RSA_MultiPri2Pub_Test.php';
 
class PhpUnderControl_PhalApiCryptRSAPub2Pri_Test extends PhpUnderControl_PhalApiCryptRSAMultiPri2Pub_Test
{
    protected function setUp()
    {
        parent::setUp();
 
        // 出于测试的方便,这里采用了相同的数据进行测试,只是在使用Pub2Pri方式时,需要互调一下key位置
        // 有点奇怪,我知道 :)
        $keyG = new PhalApi_Crypt_RSA_KeyGenerator();
        $this->privkey = $keyG->getPubKey();
        $this->pubkey = $keyG->getPriKey();
 
        $this->phalApiCryptRSAMultiPri2Pub = new PhalApi_Crypt_RSA_MultiPub2Pri();
    }
 
}