public function testGettingSubtotal()
{
$invoice = new Invoice($billable = m::mock('Laravel\\Cashier\\Contracts\\Billable'), (object) ['subtotal' => 10000]);
$billable->shouldReceive('formatCurrency')->andReturn(100.0);
$this->assertEquals(100.0, $invoice->subtotal());
}