File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- use Mockery as m ;
4
-
5
3
class DbMysqlVariableTest extends TestCase
6
4
{
7
5
/** @test */
8
6
public function it_returns_false_for_unexisting_mysql_variable ()
9
7
{
10
- $ mock = m ::mock ('alias:Illuminate\Support\Facades\DB ' );
8
+ $ mock = Mockery ::mock ('alias:Illuminate\Support\Facades\DB ' );
11
9
$ mock ->shouldReceive ('selectOne ' )
12
10
->withArgs (['show variables where variable_name = ? ' , ['fake ' ]])
13
11
->once ()
@@ -19,7 +17,7 @@ public function it_returns_false_for_unexisting_mysql_variable()
19
17
/** @test */
20
18
public function it_returns_value_for_existing_mysql_variable ()
21
19
{
22
- $ mock = m ::mock ('alias:Illuminate\Support\Facades\DB ' );
20
+ $ mock = Mockery ::mock ('alias:Illuminate\Support\Facades\DB ' );
23
21
$ mock ->shouldReceive ('selectOne ' )
24
22
->withArgs (['show variables where variable_name = ? ' , ['hostname ' ]])
25
23
->once ()
You can’t perform that action at this time.
0 commit comments