public function setUp() { $class = 'AmCharts\\Chart\\DataProvider\\Reader\\AbstractReader'; $this->reader = $this->getMockForAbstractClass($class, array(), '', true, true, true, array('fromString')); $this->reader->expects($this->any())->method('fromString')->will($this->returnArgument(0)); }