English 中文(简体)
Trouble with PHPUnit on Zend服务器 CE - MacOSX
原标题:Trouble with PHPUnit on Zend Server CE - MacOSX

我在MacOS狮子上安装了Zender CE服务器,除PHPUnit外,一切都顺利运行。

我从与Zentd服务器CE的PERL那里安装了PHPUnit。

这里指的是从我管理Candunit到Cole的产量:

Failed loading ”/usr/local/zend/lib/php_extensions/xdebug.so”:      dlopen(”/usr/local/zend/lib/php_extensions/xdebug.so”, 9): image not found
PHP Warning:  PHP Startup: Unable to load dynamic library      /usr/local/zend/lib/php_extensions/mcrypt.so  -     dlopen(/usr/local/zend/lib/php_extensions/mcrypt.so, 9): Library not loaded:     /usr/lib/libltdl.3.dylib
  Referenced from: /usr/local/zend/lib/php_extensions/mcrypt.so
  Reason: image not found in Unknown on line 0
PHP Warning:  Xdebug MUST be loaded as a Zend extension in Unknown on line 0
PHP Fatal error:  Call to undefined method PHP_CodeCoverage_Filter::getInstance() in     /usr/local/bin/phpunit on line 39
PHP Stack trace:
PHP   1. {main}() /usr/local/bin/phpunit:0

是否有任何人知道问题或问题是什么?

感谢和敬爱!

最佳回答

这是我的第一个回答。 因此,我很容易。

晚上,我与OSX狮子的Zentd服务器CE有同样的问题。 为了解决这些问题,你必须安装x条码作为unix开发工具

让我们开始,你有两个问题:xdebug.solibltdl.3.dylib

<>Firstxdebug.so 由于没有发现,为了安装,你应从指挥线上操作如下:

sudo su -

It will ask you for you password (if you don t have one just press the enter key). Then:

export CFLAGS="-arch i386 $CFLAGS"
export CCFLAGS="-arch i386 $CCFLAGS"
export CXXFLAGS="-arch i386 $CXXFLAGS"
export LDFLAGS="-arch i386 $LDFLAGS"
/usr/local/zend/bin/pear config-set php_ini /usr/local/zend/etc/php.ini
/usr/local/zend/bin/pecl install xdebug

前四条线迫使汇编者产生32个比值,因为Zend服务器是32个比值,OSX狮是64个比值操作系统。

右右,现在你们应该有xdebug.so 安装在 */usr/ local/zend/lib/php_extensions*,只是确保:/usr/ local/zend/etc/php.ini。 在所有其他延期之后和在[zend]节之前,装载以下线的负载:

zend_extension=/usr/local/zend/lib/php_extensions/xdebug.so

这里的碎片来自我的php.ini:

...
;extension=odbc.so
;extension=imagick.so
zend_extension=/usr/local/zend/lib/php_extensions/xdebug.so

[zend]
zend_extension=/usr/local/zend/lib/ZendExtensionManager.so
...

如果是人工添加,那么如果你php.ini <>>/em>文档含有以下线,删除该线,因为Xdebug必须装上泽德的延伸。

extension=xdebug.so

www.un.org/spanish/ga/president

sudo ln -s /usr/lib/libltdl.dylib /usr/lib/libltdl.3.dylib

接下来,你管理Sandounit,所有东西都应顺利进行(甚至拖网测试任何加密功能)。

问题回答

我在试图开始Sandunit时,刚刚陷入了 m密的问题。

警告没有出现,如果你用php子管理:

sudo /phpunit——颠覆

PHPUnit 3.6.6 by Sebastian Bergmann.





相关问题
run unit tests and coverage in certain python structure

I have some funny noob problem. I try to run unit tests from commandline: H:PROpyEstimator>python src estpython est_power_estimator.py Traceback (most recent call last): File "src est...

How to unit-test an enterprise symfony project?

I´m working on a huge project at my work. We have about 200 database tables, accordingly a huge number of Models, Actions and so on. How should I begin to write tests for this? My biggest problem ...

Code Coverage Tools & Visual Studio 2008 Pro

Just wondering what people are using for code coverage tools when using MS Visual Studio 2008 Pro. We are using the built-in MS test project and unit testing tool (the one that come pre-installed ...

Unit testing. File structure

I have a C++ legacy codebase with 10-15 applications, all sharing several components. While setting up unittests for both shared components and for applications themselves, I was wondering if there ...

Unit Testing .NET 3.5 projects using MStest in VS2010

There s a bug/feature in Visual Studio 2010 where you can t create a unit test project with the 2.0 CLR. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=483891&wa=...

Unit Test for Exceptions Message

Is there a simple (Attribute-driven) way to have the following test fail on the message of the exception. [TestMethod()] [ExpectedException(typeof(ArgumentException))] public void ExceptionTestTest() ...