Skip to content

Commit 06b9876

Browse files
committed
Fix Code Style in all files
1 parent fccb0c4 commit 06b9876

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Tests/Unit/Consumption/Extension/DoctrineClearIdentityMapExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function testShouldClearIdentityMap()
3232
$registry
3333
->expects($this->once())
3434
->method('getManagers')
35-
->will($this->returnValue(['manager-name' => $manager]))
35+
->willReturn(['manager-name' => $manager])
3636
;
3737

3838
$context = $this->createContext();

Tests/Unit/Consumption/Extension/DoctrinePingConnectionExtensionTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ public function testShouldNotReconnectIfConnectionIsOK()
2626
$connection
2727
->expects($this->once())
2828
->method('isConnected')
29-
->will($this->returnValue(true))
29+
->willReturn(true)
3030
;
3131
$connection
3232
->expects($this->once())
3333
->method('ping')
34-
->will($this->returnValue(true))
34+
->willReturn(true)
3535
;
3636
$connection
3737
->expects($this->never())
@@ -52,7 +52,7 @@ public function testShouldNotReconnectIfConnectionIsOK()
5252
$registry
5353
->expects($this->once())
5454
->method('getConnections')
55-
->will($this->returnValue([$connection]))
55+
->willReturn([$connection])
5656
;
5757

5858
$extension = new DoctrinePingConnectionExtension($registry);
@@ -65,12 +65,12 @@ public function testShouldDoesReconnectIfConnectionFailed()
6565
$connection
6666
->expects($this->once())
6767
->method('isConnected')
68-
->will($this->returnValue(true))
68+
->willReturn(true)
6969
;
7070
$connection
7171
->expects($this->once())
7272
->method('ping')
73-
->will($this->returnValue(false))
73+
->willReturn(false)
7474
;
7575
$connection
7676
->expects($this->once())
@@ -97,7 +97,7 @@ public function testShouldDoesReconnectIfConnectionFailed()
9797
$registry
9898
->expects($this->once())
9999
->method('getConnections')
100-
->will($this->returnValue([$connection]))
100+
->willReturn([$connection])
101101
;
102102

103103
$extension = new DoctrinePingConnectionExtension($registry);
@@ -110,7 +110,7 @@ public function testShouldSkipIfConnectionWasNotOpened()
110110
$connection1
111111
->expects($this->once())
112112
->method('isConnected')
113-
->will($this->returnValue(false))
113+
->willReturn(false)
114114
;
115115
$connection1
116116
->expects($this->never())
@@ -122,12 +122,12 @@ public function testShouldSkipIfConnectionWasNotOpened()
122122
$connection2
123123
->expects($this->once())
124124
->method('isConnected')
125-
->will($this->returnValue(true))
125+
->willReturn(true)
126126
;
127127
$connection2
128128
->expects($this->once())
129129
->method('ping')
130-
->will($this->returnValue(true))
130+
->willReturn(true)
131131
;
132132

133133
$context = $this->createContext();
@@ -140,7 +140,7 @@ public function testShouldSkipIfConnectionWasNotOpened()
140140
$registry
141141
->expects($this->once())
142142
->method('getConnections')
143-
->will($this->returnValue([$connection1, $connection2]))
143+
->willReturn([$connection1, $connection2])
144144
;
145145

146146
$extension = new DoctrinePingConnectionExtension($registry);

0 commit comments

Comments
 (0)