-
Notifications
You must be signed in to change notification settings - Fork 77
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
Error in AbstractPhysicalQuantityTest::getTestUnitOfMeasure #63
Comments
pierpaolocira
added a commit
to pierpaolocira/php-units-of-measure
that referenced
this issue
Dec 5, 2016
…ound for PhpUnitsOfMeasure#63 (necessary for PhpUnitsOfMeasure#62 unit tests)
This was referenced Dec 5, 2016
Hi, in the aforementioned pull request (#64) I implemented an alternative method to |
Fixed with #65 |
pierpaolocira
added a commit
to pierpaolocira/php-units-of-measure
that referenced
this issue
Feb 6, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I think there is an error in the abovementioned function (related to the
MockBuilder
behaviour).I'm trying to write a new test function, related to the following function declared into the
AbstractPhysicalQuantity
(see #62)Following the existing code, I tried to create the related unit test also adding a new unit. This is the only important part of the function to reproduce the error:
The first assert is correct, but not the second one.
I made several test to inestigate on the error... and I saw that if you run (into
AbstractPhysicalQuantity
) a$unit->getName()
or a$unit->getAliases()
you will see the expected values.So the problems seems to be linked to the
isAliasOf()
method.I'm running on a PHP 5.5.36 environment.
Hope this helps.
The text was updated successfully, but these errors were encountered: