Esempio n. 1
0
 public function testFormatCpf()
 {
     $string = '86536778790';
     // cpf generated with: http://www.geradorcpf.com/
     $masked_string = '865.367.787-90';
     $this->assertEquals($masked_string, format_cpf($string));
 }
                    <div class="col s12 l4">
                        Comprovante para:
                        <h4><?php 
echo $response->client->name;
?>
</h4>
                        <address>
                            <?php 
echo $response->client->email;
?>
                            <br><i class="fa fa-credit-card"></i> <strong class=""><?php 
echo $response->credit_card;
?>
</strong>
                            <br><i class="mdi-action-picture-in-picture"></i> <?php 
echo format_cpf($response->client->legal_id);
?>
                        </address>
                    </div>
                    <!-- /Invoice To -->

                    <!-- Invoice Number and Date -->
                    <div class="col s12 l4">
                        <div class="invoice-num">
                            <div class="num">Number: <span class="right"><strong><?php 
echo $_GET['rid'];
?>
</strong></span>
                            </div>
                            <h4>
                                <div class="date">