Skip to content

Commit 56ea32a

Browse files
committed
Mockery 1.0 features used.
1 parent 9014af4 commit 56ea32a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/HelperFunctions/classes/Artisan/CommandTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
namespace Illuminated\Helpers\Artisan;
44

55
use Illuminated\Helpers\HelperFunctions\Tests\TestCase;
6-
use Mockery;
76

87
class CommandTest extends TestCase
98
{
109
protected function setUp()
1110
{
1211
parent::setUp();
1312

14-
$phpBinaryMock = Mockery::mock('overload:Symfony\Component\Process\PhpExecutableFinder');
15-
$phpBinaryMock->shouldReceive('find')->withNoArgs()->once()->andReturn('php');
13+
$phpBinaryMock = mock('overload:Symfony\Component\Process\PhpExecutableFinder');
14+
$phpBinaryMock->expects()->find()->andReturn('php');
1615
}
1716

1817
/** @test */

0 commit comments

Comments
 (0)