public function setMockAutoloader(autoloader\mock $autoloader = null) { $this->mockAutoloader = $autoloader ?: new autoloader\mock(); return $this; }