Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-zeng committed Dec 19, 2023
1 parent a7f4037 commit e3b4995
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Pipeline/PipelineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ public function testPipelineConditionable()
$this->assertSame('foo', $_SERVER['__test.pipe.one']);
unset($_SERVER['__test.pipe.one']);

$_SERVER['__test.pipe.one'] = null;
$result = (new Pipeline(new Container))
->send('foo')
->when(false, function (Pipeline $pipeline) {
Expand All @@ -270,6 +271,7 @@ public function testPipelineConditionable()

$this->assertSame('foo', $result);
$this->assertNull($_SERVER['__test.pipe.one']);
unset($_SERVER['__test.pipe.one']);
}
}

Expand Down

0 comments on commit e3b4995

Please sign in to comment.