本文介绍了版本4.0中的PHPUnit_Util_Type :: export()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你们能帮我找到export函数发生的情况吗?

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

该功能仍由EcomDev_PHPUnit代码调用(Magento测试).

它潜伏在其他地方,但我似乎找不到export函数发生了什么.

谢谢.

解决方案

找到提交:

https://github.com/sebastianbergmann/phpunit/commit/b8b3e1fdc0312938d8ce2d7ff> /p>

所有输出功能已移至SebastianBergmann\Exporter\Exporter.

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

现在唯一的问题是在范围内调用exporter.

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.

解决方案

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.

这篇关于版本4.0中的PHPUnit_Util_Type :: export()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 02:35