Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing feature, the Iteration is available only on the explicit currencies. #4

Open
liuggio opened this issue Aug 29, 2014 · 0 comments

Comments

@liuggio
Copy link
Member

liuggio commented Aug 29, 2014

Would be great to have the Iteration available also on the calculated currencies,
This test is broken now:

    public function testShouldReturnCHFDuringTheIteration()
    {
        $price = new Price(
            array('USD' => 5),
            array('USD/CHF 1.500')
        );

        $currencies = array();
        foreach ($price as $money) {  // Iteration!!
            $currencies[] = (string) $money->getCurrency();
        }

        $this->assertEquals(array('USD', 'CHF'), $currencies);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant