File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
3
- <!-- http://phpunit.de/manual/4.1/en/appendixes.configuration.html -->
4
3
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
- xsi : noNamespaceSchemaLocation =" http://schema.phpunit.de/4.1/phpunit.xsd"
6
- backupGlobals =" false"
4
+ xsi : noNamespaceSchemaLocation =" http://schema.phpunit.de/8.5/phpunit.xsd"
7
5
bootstrap =" vendor/autoload.php"
8
6
>
9
7
<testsuites >
17
15
<directory >src</directory >
18
16
</whitelist >
19
17
</filter >
20
-
21
- </phpunit >
18
+ </phpunit >
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ public function testDumpTriggerDefaultSetting()
129
129
$ xmlElement = new \SimpleXMLElement ($ xml );
130
130
$ table = new Table ($ xmlElement );
131
131
132
- $ this ->assertEquals ($ table ->getDumpTriggersLevel (), Table:: DEFINER_NO_DEFINER );
132
+ $ this ->assertEquals (Table:: DEFINER_NO_DEFINER , $ table ->getDumpTriggersLevel ());
133
133
$ this ->assertTrue ($ table ->isTriggerDumpRequired ());
134
134
}
135
135
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ protected function setUp(): void
33
33
34
34
public function testDumpSchemaWithNormalConfiguration ()
35
35
{
36
- $ this ->dbMock ->expects ( $ this -> any ())-> method ('fetchColumn ' )->willReturn ('CREATE TABLE statement ' );
36
+ $ this ->dbMock ->method ('fetchColumn ' )->willReturn ('CREATE TABLE statement ' );
37
37
38
38
$ this ->dumper ->dumpSchema ('test ' , $ this ->dbMock );
39
39
$ output = $ this ->outputBuffer ->fetch ();
@@ -46,12 +46,12 @@ public function testDumpDataWithFullConfiguration()
46
46
{
47
47
$ pdoMock = $ this ->getMockBuilder (\stdClass::class)->addMethods (['setAttribute ' ])->getMock ();
48
48
49
- $ this ->dbMock ->expects ( $ this -> any ())-> method ('getWrappedConnection ' )->willReturn ($ pdoMock );
49
+ $ this ->dbMock ->method ('getWrappedConnection ' )->willReturn ($ pdoMock );
50
50
51
- $ this ->dbMock -> expects ( $ this -> any ())
51
+ $ this ->dbMock
52
52
->method ('fetchColumn ' )
53
53
->willReturn (2 );
54
- $ this ->dbMock -> expects ( $ this -> any ())
54
+ $ this ->dbMock
55
55
->method ('fetchAll ' )
56
56
->willReturnCallback (function ($ query ) {
57
57
if (false !== strpos ($ query , 'SHOW COLUMNS ' )) {
@@ -69,13 +69,13 @@ public function testDumpDataWithFullConfiguration()
69
69
70
70
throw new \RuntimeException ('Unexpected fetchAll-call: ' .$ query );
71
71
});
72
- $ this ->dbMock -> expects ( $ this -> any ())
72
+ $ this ->dbMock
73
73
->method ('quote ' )
74
74
->willReturnCallback (function ($ value ) {
75
75
return $ value ;
76
76
});
77
77
78
- $ this ->dbMock ->expects ( $ this -> any ())-> method ('query ' )->willReturn ([
78
+ $ this ->dbMock ->method ('query ' )->willReturn ([
79
79
[
80
80
'col1 ' => 'value1.1 ' ,
81
81
'col2 ' => 'value1.2 ' ,
You can’t perform that action at this time.
0 commit comments