-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #570: Fix decoding of non-nullable interval fields…
… when null is gotten
- Loading branch information
Showing
8 changed files
with
107 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Temporal\Tests\Acceptance\Extra\Workflow\WorkflowA; | ||
|
||
use PHPUnit\Framework\Attributes\Test; | ||
use Temporal\Client\WorkflowStubInterface; | ||
use Temporal\Tests\Acceptance\App\Attribute\Stub; | ||
use Temporal\Tests\Acceptance\App\TestCase; | ||
use Temporal\Workflow\WorkflowInterface; | ||
use Temporal\Workflow\WorkflowMethod; | ||
|
||
class WorkflowATest extends TestCase | ||
{ | ||
#[Test] | ||
public function sendEmpty( | ||
#[Stub(type: 'Workflow')] | ||
WorkflowStubInterface $stub, | ||
): void { | ||
$this->assertSame(42, $stub->getResult()); | ||
} | ||
} | ||
|
||
#[WorkflowInterface] | ||
class TestWorkflow | ||
{ | ||
#[WorkflowMethod(name: "Workflow")] | ||
public function handle() | ||
{ | ||
return 42; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Temporal\Tests\Acceptance\Extra\Workflow\WorkflowB; | ||
|
||
use PHPUnit\Framework\Attributes\CoversFunction; | ||
use PHPUnit\Framework\Attributes\Test; | ||
use Temporal\Client\WorkflowStubInterface; | ||
use Temporal\Tests\Acceptance\App\Attribute\Stub; | ||
use Temporal\Tests\Acceptance\App\TestCase; | ||
use Temporal\Workflow; | ||
use Temporal\Workflow\WorkflowInterface; | ||
use Temporal\Workflow\WorkflowMethod; | ||
|
||
class WorkflowBTest extends TestCase | ||
{ | ||
#[Test] | ||
public function sendEmpty( | ||
#[Stub(type: 'Workflow')] | ||
WorkflowStubInterface $stub, | ||
): void { | ||
$this->assertSame(24, $stub->getResult()); | ||
} | ||
} | ||
|
||
#[WorkflowInterface] | ||
class TestWorkflow | ||
{ | ||
#[WorkflowMethod(name: "Workflow")] | ||
public function handle() | ||
{ | ||
return 24; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters