| @@ 26-38 (lines=13) @@ | ||
| 23 | private $_tmpDir; |
|
| 24 | private $_namespace; |
|
| 25 | ||
| 26 | public function setUp() |
|
| 27 | { |
|
| 28 | $this->_namespace = uniqid("doctrine_"); |
|
| 29 | $this->_tmpDir = \sys_get_temp_dir(); |
|
| 30 | \mkdir($this->_tmpDir . \DIRECTORY_SEPARATOR . $this->_namespace); |
|
| 31 | $this->_generator = new EntityGenerator(); |
|
| 32 | $this->_generator->setAnnotationPrefix(""); |
|
| 33 | $this->_generator->setGenerateAnnotations(true); |
|
| 34 | $this->_generator->setGenerateStubMethods(true); |
|
| 35 | $this->_generator->setRegenerateEntityIfExists(false); |
|
| 36 | $this->_generator->setUpdateEntityIfExists(true); |
|
| 37 | $this->_generator->setFieldVisibility(EntityGenerator::FIELD_VISIBLE_PROTECTED); |
|
| 38 | } |
|
| 39 | ||
| 40 | public function tearDown() |
|
| 41 | { |
|
| @@ 32-47 (lines=16) @@ | ||
| 29 | /** |
|
| 30 | * @inheritdoc |
|
| 31 | */ |
|
| 32 | public function setUp() |
|
| 33 | { |
|
| 34 | $this->_namespace = uniqid('doctrine_'); |
|
| 35 | $this->_tmpDir = \sys_get_temp_dir() . DIRECTORY_SEPARATOR . $this->_namespace; |
|
| 36 | \mkdir($this->_tmpDir); |
|
| 37 | ||
| 38 | $this->_generator = new EntityGenerator(); |
|
| 39 | $this->_generator->setAnnotationPrefix(""); |
|
| 40 | $this->_generator->setGenerateAnnotations(true); |
|
| 41 | $this->_generator->setGenerateStubMethods(true); |
|
| 42 | $this->_generator->setRegenerateEntityIfExists(false); |
|
| 43 | $this->_generator->setUpdateEntityIfExists(true); |
|
| 44 | $this->_generator->setFieldVisibility(EntityGenerator::FIELD_VISIBLE_PROTECTED); |
|
| 45 | ||
| 46 | $this->_repositoryGenerator = new EntityRepositoryGenerator(); |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * @inheritdoc |
|