add test
This commit is contained in:
@@ -68,4 +68,15 @@ class MarketDataTest extends TestCase
|
|||||||
'symbol' => '',
|
'symbol' => '',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function test_market_data_standardizes_currency_codes()
|
||||||
|
{
|
||||||
|
|
||||||
|
$quote = new Quote([
|
||||||
|
'symbol' => 'ACME',
|
||||||
|
'currency' => 'GBp',
|
||||||
|
]);
|
||||||
|
|
||||||
|
$this->assertEquals('GBX', $quote->currency);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user