예제 #1
0
$bond = new Bond();
$bond->find_by_id($this->stock->isin);
?>
	<tr class="row1">
		<th></th>
		<th>Evento</th>
		<th>Data</th>
		<th>Importo lordo</th>
		<th>Tasso</th>
	</tr>

	<tr class="row0">
		<td class="cell10"><div class="vstrut17"></div></td>
		<td class="cell10">Emissione</td>
		<td class="cell10"><b><?php 
print $bond->emissione();
?>
</b></td>
		<td class="cell10"></td>
		<td class="cell10"></td>
	</tr>

	<tr class="row1">
		<td class="cell10"><div class="vstrut17"></div></td>
		<td class="cell10">Scadenza</td>
		<td class="cell10"><b><?php 
print $bond->scadenza();
?>
</b></td>
		<td class="cell10">&mdash;</td>
		<td class="cell10">&mdash;%</td>
예제 #2
0
 public function test_emissione()
 {
     $instance = new Bond();
     $instance->emissione = '2016-04-21';
     $this->assertEquals('Thu, 21 April 2016', $instance->emissione());
 }