/** * Creates a mocked source resolver instance. * * @return \pdepend\reflection\interfaces\SourceResolver */ protected function createResolver() { $resolver = parent::createResolver(); if (func_num_args() === 1) { $resolver->expects($this->once())->method('hasPathnameForClass')->with($this->equalTo(func_get_arg(0)))->will($this->returnValue(true)); } return $resolver; }