|
From: SourceForge.net <no...@so...> - 2012-12-19 22:30:36
|
Bugs item #3597583, was opened at 2012-12-19 14:30 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=449491&aid=3597583&group_id=47439 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Bug Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: matthias g (gommma) Summary: PHPUnit 3.7 does not parse embedded PHP contained within YML Initial Comment: I posted an issue over at PHPUnit (https://github.com/sebastianbergmann/phpunit/issues/756), and the dev indicated that it wasn't a PHPUnit issue but a DBUnit issue, so I am posting over here. If this not the correct process, I apologize. I'm not sure which version of dbunit PHPUnit is built upon. Here is the contents of the post: We recently came across an issue where unit tests on one server were running fine, but on another server they kept failing. After some investigation it appears the ability for PHPUnit to parse embedded within Yaml files was broke between v3.6 and v3.7. // Debug code within one of our tests var_dump((string) $this->getDataset()); exit; Results of running test on v3.6: +----------------------+----------------------+----------------------+----------------------+ | sitemanager.clients | +----------------------+----------------------+----------------------+----------------------+ | id | clientid | parentid | clientname | +----------------------+----------------------+----------------------+----------------------+ | 1 | unittest | unittest | Unit Test Client | +----------------------+----------------------+----------------------+----------------------+ Results of running test on v3.7 +----------------------+----------------------+----------------------+----------------------+ | sitemanager.clients | +----------------------+----------------------+----------------------+----------------------+ | id | clientid | parentid | clientname | +----------------------+----------------------+----------------------+----------------------+ | 1 | <?php echo Test_Envi | <?php echo Test_Envi | <?php echo Test_Envi | +----------------------+----------------------+----------------------+----------------------+ Notice in the v3.7 output, the php code is treated as a literal string, which obviously breaks unit tests that assert a specific value. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=449491&aid=3597583&group_id=47439 |