Alcaeus\MongoDbAdapter\Tests\Mongo\FunctionsTest::data PHP Method

data() public static method

public static data ( ) : array
return array Returns tupels: [$encoded, $decoded]
    public static function data()
    {
        // The encoded values were retrieved by encoding data with the legacy driver and encoding them base64
        $simpleArray = ['foo' => 'bar'];
        $simpleArrayEncoded = "EgAAAAJmb28ABAAAAGJhcgAA";
        $arrayWithObjectId = ['_id' => new \MongoId('1234567890abcdef12345678')];
        $arrayWithObjectIdEncoded = "FgAAAAdfaWQAEjRWeJCrze8SNFZ4AA==";
        return ['simpleArray' => [base64_decode($simpleArrayEncoded), $simpleArray], 'arrayWithObjectId' => [base64_decode($arrayWithObjectIdEncoded), $arrayWithObjectId]];
    }