phpunit Önemli Hata

0 Cevap php

Ben sadece tekrar benim kod için Unit Testleri oluşturmaya başladım. Ben PHPUnit geçmişte çalışan ama bugün top oynarken değil vardı. Ben herhangi bir yeni testler oluşturulan önce ben hala geçerli olup olmadığını görmek için bazı eski olanları çalıştırmak karar verdi ama PHPUnit kendisi bir Ölümcül Hata olsun. Ben Ubuntu CLI'den phpunit çalıştırın.

phpunit TestCaseFile

PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Warning:  Xdebug MUST be loaded as a Zend extension in Unknown on line 0

Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0

Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0

Fatal error: Class 'PHPUnit_Framework_MockObject_Matcher_InvokedRecorder' not found in /usr/share/php/PHPUnit/Framework/MockObject/Matcher/InvokedAtLeastOnce.php on line 60

Call Stack:
    0.0002     651688   1. {main}() /usr/bin/phpunit:0
    0.0031    1173168   2. require('/usr/share/php/PHPUnit/TextUI/Command.php') /usr/bin/phpunit:48
    0.0046    1485456   3. require_once('/usr/share/php/PHPUnit/TextUI/TestRunner.php') /usr/share/php/PHPUnit/TextUI/Command.php:47
    0.0047    1503344   4. require_once('/usr/share/php/PHPUnit/Framework.php') /usr/share/php/PHPUnit/TextUI/TestRunner.php:47
    0.0168    3848688   5. require('/usr/share/php/PHPUnit/Framework/TestCase.php') /usr/share/php/PHPUnit/Framework.php:68
    0.0178    4091880   6. require_once('/usr/share/php/PHPUnit/Framework/MockObject/Matcher/InvokedAtLeastOnce.php') /usr/share/php/PHPUnit/Framework/TestCase.php:49

Ben vb dosya yolları doğru ama gerçekten herkes yardımcı olabilir sabitleme hakkında gitmek nasıl bilmiyorum, dosyaların bulunduğundan emin olmak için kontrol etti?

0 Cevap