sebastianbergmann/phpunit-mock-objects — Issue #80: Abstract class with abstract constructor wont work with getMockForAbstractClass 
Author: jaysonsantos
Created: 2012-02-04 14:18:50+00:00
State: open

Hi, I don't know if this a bug, however I tried a lot of things reading the docs I couldn't get this working.

```php
object = $this->getMockForAbstractClass('Foo');
}

public function testNothing()
{
$this->assertTrue(true);
}
}
```
I tried to pass parameter to not call the class constructor and tried to mock the __construct and didn't get it working.
Here is the report.

```bash
$ phpunit bug.php
PHPUnit 3.6.9 by Sebastian Bergmann.

PHP Fatal error: Class Mock_Foo_bdbb3933 contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Foo::__construct) in /usr/lib/php/pear/PHPUnit/Framework/MockObject/Generator.php(218) : eval()'d code on line 56
```