/** */ public function testExist() { $id = 1; $exist = true; $this->repository->exist($id)->willReturn($exist)->shouldBeCalledTimes(1); $this->assertSame($exist, $this->manager->exist($id)); }
/** * @param int $id * * @return boolean */ public function exist($id) { return $this->repository->exist($id); }