Skip to content

Commit 0683b2d

Browse files
committed
test: optimize test
1 parent 82f039a commit 0683b2d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/Cases/GoTaskProxyTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ class GoTaskProxyTest extends TestCase
2727
public function testCall()
2828
{
2929
$goTask = Mockery::mock(GoTask::class);
30-
$goTask->shouldReceive('call')->once()->withArgs(['a', 'b', 0]);
31-
$goTask->shouldReceive('call')->once()->withArgs(['GoProxyStub.Test', 'mmm', 1]);
30+
$goTask->shouldReceive('call')->once()->withArgs(['a', 'b', 0])->andReturn('ok');
31+
$goTask->shouldReceive('call')->once()->withArgs(['GoProxyStub.Test', 'mmm', 1])->andReturn('ok');
3232
$proxy = new GoProxyStub($goTask);
33-
$proxy->call('a', 'b', 0);
34-
$proxy->test('mmm', 1);
35-
$this->assertFalse(false);
33+
$this->assertEquals('ok', $proxy->call('a', 'b', 0));
34+
$this->assertEquals('ok', $proxy->test('mmm', 1));
3635
}
3736
}

0 commit comments

Comments
 (0)