Skip to content

Commit

Permalink
Merge pull request #7 from vuongxuongminh/1.1.1
Browse files Browse the repository at this point in the history
Bump version 1.1.1
  • Loading branch information
vuongxuongminh authored May 14, 2020
2 parents 482c53a + 4c37f20 commit 849ee33
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.1.1

- Upgrade `spatie/async` package to `^1.4.0`.
- Deprecated `VXM\Async\Process\SynchronousProcess`.

## 1.1.0

- Support Laravel version 6.0
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
],
"require": {
"php": "^7.1",
"illuminate/support": "^5.7 || ^6.0",
"spatie/async": "^1.1"
"illuminate/support": "^5.8 || ^6.0",
"spatie/async": "^1.4.0"
},
"require-dev": {
"orchestra/testbench": "^3.7 || ^4.0",
"phpunit/phpunit": "~7.5",
"orchestra/testbench": "^3.8 || ^4.0",
"phpunit/phpunit": "~7.5 || ^8.0",
"scrutinizer/ocular": "^1.5"
},
"autoload": {
Expand Down
1 change: 1 addition & 0 deletions src/Process/SynchronousProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
/**
* @author Vuong Minh <[email protected]>
* @since 1.0.0
* @deprecated https://github.com/spatie/async/pull/73 had solved. This class will be remove on version 2.
*/
class SynchronousProcess extends BaseSynchronousProcess
{
Expand Down
6 changes: 3 additions & 3 deletions src/Runtime/ParentRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
use Spatie\Async\Pool;
use Spatie\Async\Process\ParallelProcess;
use Spatie\Async\Process\Runnable;
use Spatie\Async\Process\SynchronousProcess;
use Spatie\Async\Runtime\ParentRuntime as BaseParentRuntime;
use Symfony\Component\Process\Process;
use VXM\Async\Process\SynchronousProcess;

/**
* ParentRuntime support invoke console environment in child runtime mode.
Expand All @@ -25,7 +25,7 @@ class ParentRuntime extends BaseParentRuntime
/**
* {@inheritdoc}
*/
public static function createProcess($task, ?int $outputLength = null): Runnable
public static function createProcess($task, ?int $outputLength = null, ?string $binary = 'php'): Runnable
{
if (! self::$isInitialised) {
self::init();
Expand All @@ -36,7 +36,7 @@ public static function createProcess($task, ?int $outputLength = null): Runnable
}

$process = new Process([
'php',
$binary,
self::$childProcessScript,
self::$autoloader,
self::encodeTask($task),
Expand Down
4 changes: 2 additions & 2 deletions tests/EventTestClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ class EventTestClass extends TestCase
{
public function success($result)
{
$this->assertContains('ok!', $result);
$this->assertStringContainsString('ok!', $result);
}

public function catch(Exception $exception)
{
$this->assertContains('ok!', $exception->getMessage());
$this->assertStringContainsString('ok!', $exception->getMessage());
}
}
2 changes: 1 addition & 1 deletion tests/JobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function testHandleSuccess()
]);

foreach (Async::wait() as $result) {
$this->assertContains('ok!', $result);
$this->assertStringContainsString('ok!', $result);
}
}

Expand Down

0 comments on commit 849ee33

Please sign in to comment.