- When I subclass a PHP class that is defined via C
- And I override the
__construct
method - And I call
$this->aMethod
in it - And I mock it
- And I proxy it
Then I got an error:
>(9)[{..}greg/dev/debug/phpunit-proxy-amqp](master) phpunit ExchangeTest.php
PHPUnit 4.5.0 by Sebastian Bergmann and contributors.
Configuration read from /home/greg/dev/debug/phpunit-proxy-amqp/phpunit.xml.dist
E
Time: 77 ms, Memory: 4.25Mb
There was 1 error:
1) ExchangeTest::testWeird
call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object
/home/greg/dev/debug/phpunit-proxy-amqp/Exchange.php:9
/home/greg/dev/debug/phpunit-proxy-amqp/ExchangeTest.php:26
/home/greg/dev/github.com/sebastianbergmann/phpunit/src/TextUI/Command.php:151
/home/greg/dev/github.com/sebastianbergmann/phpunit/src/TextUI/Command.php:103
FAILURES!
Tests: 1, Assertions: 0, Errors: 1.