diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2021-10-18 11:25:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 11:25:35 +0300 |
commit | 76a120b95696545a2afc255f88e04b5530c5129e (patch) | |
tree | af52302f3643640a21c0eae7202ad8c163438fe7 /tests/PHPUnit/Integration | |
parent | bfe1f70627ffc338aa6a918d5dbe7d50a929b9f7 (diff) |
Improve performance of Process::isSupported by caching it (#18152)
* Improve performance of Process::isSupported
* tweak content read
* Update Process.php
* fix test
Diffstat (limited to 'tests/PHPUnit/Integration')
-rw-r--r-- | tests/PHPUnit/Integration/CliMulti/ProcessTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PHPUnit/Integration/CliMulti/ProcessTest.php b/tests/PHPUnit/Integration/CliMulti/ProcessTest.php index 229a687587..e759928b8d 100644 --- a/tests/PHPUnit/Integration/CliMulti/ProcessTest.php +++ b/tests/PHPUnit/Integration/CliMulti/ProcessTest.php @@ -106,7 +106,7 @@ class ProcessTest extends \PHPUnit\Framework\TestCase $this->assertTrue($this->process->isRunning()); $this->assertFalse($this->process->hasFinished()); - File::setFileSize(505); + $this->process->writePidFileContent(str_pad('1', 505,'1')); $this->assertFalse($this->process->isRunning()); $this->assertTrue($this->process->hasFinished()); |