File tree Expand file tree Collapse file tree 2 files changed +17
-20
lines changed Expand file tree Collapse file tree 2 files changed +17
-20
lines changed Original file line number Diff line number Diff line change @@ -168,8 +168,6 @@ public function testNamespacePrefix(): void
168
168
169
169
public function testFolderIsGeneratedRecursively (): void
170
170
{
171
- define ('MODEL_TEMP_PATH ' , sys_get_temp_dir () . '/PHPModelGeneratorTest/Models ' );
172
-
173
171
(new ModelGenerator (
174
172
(new GeneratorConfiguration ())
175
173
->setNamespacePrefix ('\\Application ' )
@@ -249,8 +247,6 @@ public function testIdenticalSchemasAreMappedToOneClass(): void
249
247
250
248
public function testIdenticalSchemasAreMappedToOneClassFromDifferentNamespaces (): void
251
249
{
252
- define ('MODEL_TEMP_PATH ' , sys_get_temp_dir () . '/PHPModelGeneratorTest/Models ' );
253
-
254
250
ob_start ();
255
251
256
252
$ generatedClasses = (new ModelGenerator (
Original file line number Diff line number Diff line change 1
- <?php
2
-
3
- const FAILED_CLASSES_PATH = __DIR__ . '/../failed-classes/ ' ;
4
-
5
- if (is_dir (FAILED_CLASSES_PATH )) {
6
- $ di = new RecursiveDirectoryIterator (FAILED_CLASSES_PATH , FilesystemIterator::SKIP_DOTS );
7
- $ ri = new RecursiveIteratorIterator ($ di , RecursiveIteratorIterator::CHILD_FIRST );
8
-
9
- foreach ($ ri as $ file ) {
10
- $ file ->isDir () ? rmdir ($ file ->getRealPath ()) : unlink ($ file ->getRealPath ());
11
- }
12
- }
13
-
14
- @mkdir (FAILED_CLASSES_PATH );
15
-
16
- require_once __DIR__ . '/../vendor/autoload.php ' ;
1
+ <?php
2
+
3
+ define ('FAILED_CLASSES_PATH ' , __DIR__ . '/../failed-classes/ ' );
4
+ define ('MODEL_TEMP_PATH ' , sys_get_temp_dir () . '/PHPModelGeneratorTest/Models ' );
5
+
6
+ if (is_dir (FAILED_CLASSES_PATH )) {
7
+ $ di = new RecursiveDirectoryIterator (FAILED_CLASSES_PATH , FilesystemIterator::SKIP_DOTS );
8
+ $ ri = new RecursiveIteratorIterator ($ di , RecursiveIteratorIterator::CHILD_FIRST );
9
+
10
+ foreach ($ ri as $ file ) {
11
+ $ file ->isDir () ? rmdir ($ file ->getRealPath ()) : unlink ($ file ->getRealPath ());
12
+ }
13
+ }
14
+
15
+ @mkdir (FAILED_CLASSES_PATH );
16
+
17
+ require_once __DIR__ . '/../vendor/autoload.php ' ;
You can’t perform that action at this time.
0 commit comments