8000 [Filesystem][Mime] Fix transient tests · symfony/symfony@c3bf9a6 · GitHub
[go: up one dir, main page]

Skip to content

Commit c3bf9a6

Browse files
[Filesystem][Mime] Fix transient tests
1 parent 6517957 commit c3bf9a6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Symfony/Component/Filesystem/Tests/FilesystemTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,17 @@ public function testCopyForOriginUrlsAndExistingLocalFileDefaultsToCopy()
171171
}
172172

173173
$finder = new PhpExecutableFinder();
174-
$process = new Process(array_merge([$finder->find(false)], $finder->findArguments(), ['-dopcache.enable=0', '-dvariables_order=EGPCS', '-S', 'localhost:8057']));
174+
$process = new Process(array_merge([$finder->find(false)], $finder->findArguments(), ['-dopcache.enable=0', '-dvariables_order=EGPCS', '-S', 'localhost:8857']));
175175
$process->setWorkingDirectory(__DIR__.'/Fixtures/web');
176176

177177
$process->start();
178178

1 8000 79179
do {
180180
usleep(50000);
181-
} while (!@fopen('http://localhost:8057', 'r'));
181+
} while (!@fopen('http://localhost:8857', 'r'));
182182

183183
try {
184-
$sourceFilePath = 'http://localhost:8057/logo_symfony_header.png';
184+
$sourceFilePath = 'http://localhost:8857/logo_symfony_header.png';
185185
$targetFilePath = $this->workspace.\DIRECTORY_SEPARATOR.'copy_target_file';
186186
file_put_contents($targetFilePath, 'TARGET FILE');
187187
$this->filesystem->copy($sourceFilePath, $targetFilePath, false);

src/Symfony/Component/Mime/Tests/Part/DataPartTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,15 @@ public function testFromPathWithUrl()
143143
}
144144

145145
$finder = new PhpExecutableFinder();
146-
$process = new Process(array_merge([$finder->find(false)], $finder->findArguments(), ['-dopcache.enable=0', '-dvariables_order=EGPCS', '-S', 'localhost:8057']));
146+
$process = new Process(array_merge([$finder->find(false)], $finder->findArguments(), ['-dopcache.enable=0', '-dvariables_order=EGPCS', '-S', 'localhost:8856']));
147147
$process->setWorkingDirectory(__DIR__.'/../Fixtures/web');
148148
$process->start();
149149

150150
try {
151151
do {
152152
usleep(50000);
153-
} while (!@fopen('http://localhost:8057', 'r'));
154-
$p = DataPart::fromPath($file = 'http://localhost:8057/logo_symfony_header.png');
153+
} while (!@fopen('http://localhost:8856', 'r'));
154+
$p = DataPart::fromPath($file = 'http://localhost:8856/logo_symfony_header.png');
155155
$content = file_get_contents($file);
156156
$this->assertEquals($content, $p->getBody());
157157
$maxLineLength = 76;

0 commit comments

Comments
 (0)
0