<commit_before><?php
/**
 * @author    <NAME> <<EMAIL>>
 * @copyright 2014 <NAME>
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
 */

require_once 'File/X509.php';

class Unit_File_X509_X509Test extends PhpseclibTestCase
{
    public function testLoadUnsupportedExtension()
    {
        $test = '-----BEGIN CERTIFICATE-----
<KEY>
-----END CERTIFICATE-----';

        $x509 = new File_X509();

        $cert = $x509->loadX509($test);

        $this->assertEquals($cert['tbsCertificate']['extensions'][8]['extnValue'], 'MDUwDgYIKoZIhvcNAwICAgCAMA4GCCqGSIb3DQMEAgIAgDAHBgUrDgMCBzAKBggqhkiG9w0DBw==');
    }<commit_msg>Tests/X509: swap expected and actual value<commit_after><?php
/**
 * @author    <NAME> <<EMAIL>>
 * @copyright 2014 <NAME>
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
 */

require_once 'File/X509.php';

class Unit_File_X509_X509Test extends PhpseclibTestCase
{
    public function testLoadUnsupportedExtension()
    {
        $test = '-----BEGIN CERTIFICATE-----
MI<KEY>
-----END CERTIFICATE-----';

        $x509 = new File_X509();

        $cert = $x509->loadX509($test);

        $this->assertEquals('MDUwDgYIKoZIhvcNAwICAgCAMA4GCCqGSIb3DQMEAgIAgDAHBgUrDgMCBzAKBggqhkiG9w0DBw==', $cert['tbsCertificate']['extensions'][8]['extnValue']);
    }
{'fraction_non_alphanumeric': 0.16729464958553128, 'fraction_numerical': 0.04747550866616428, 'mean_word_length': 3.759856630824373, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7568822', 'n_tokens_mistral': 545, 'n_tokens_neox': 485, 'n_words': 71}