PHPUnit_Util_Type::export() in version 4.0

こ雲淡風輕ζ 提交于 2019-12-24 11:41:33

问题


Can you guys help me locate what happened to export function in this:

https://github.com/sebastianbergmann/phpunit/blob/3.7/PHPUnit/Util/Type.php

That function is still called by EcomDev_PHPUnit code (Magento tests).

It's lurking somewhere else but I can't seem to find what happened to the export function.

Thanks.


回答1:


Found the commit:

https://github.com/sebastianbergmann/phpunit/commit/b8b3e1fdc0312938d8ce2d7ff5958d52c865d780

All output function were moved to SebastianBergmann\Exporter\Exporter.

PHPUnit_Util_Type::export($key)=> $this->exporter->export($key), PHPUnit_Util_Type::shortenedExport($value) => $this->exporter->shortenedExport($value)

The only problem now is to invoke exporter within scope.



来源:https://stackoverflow.com/questions/22567219/phpunit-util-typeexport-in-version-4-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!