public function partialWith($arguments = array()) { $this->mock = $this->factory->createPartialMock($this->build(), $arguments); return $this->mock; }