|
From: Nicolas T. <nic...@gm...> - 2009-10-21 17:05:46
|
Hi,
<?php
abstract class A {
protected abstract function internal();
public function hello() {
return $this->internal();
}
}
Mock::generate('A');
class AbstractTest extends UnitTestCase {
function test_m() {
$o = new MockA($this);
$o->setReturnValue('hello', 123);
}
}
?>
Fatal error: Class MockA contains 1 abstract method and must therefore
be declared abstract or implement the remaining methods (A::internal)
Is it a bug?
Thanks,
Nicolas Terray
|