@@ -30,12 +30,12 @@ public function testLockFails()
3030 {
3131 $ this ->expectException (LockAcquireException::class);
3232
33- $ this ->mutex ->expects ($ this -> once ())
33+ $ this ->mutex ->expects (self :: once ())
3434 ->method ('lock ' )
3535 ->willThrowException (new LockAcquireException ());
3636
3737 $ this ->mutex ->synchronized (function (): void {
38- $ this -> fail ('Should not execute code. ' );
38+ self :: fail ('Should not execute code. ' );
3939 });
4040 }
4141
@@ -44,7 +44,7 @@ public function testLockFails()
4444 */
4545 public function testUnlockAfterCode ()
4646 {
47- $ this ->mutex ->expects ($ this -> once ())
47+ $ this ->mutex ->expects (self :: once ())
4848 ->method ('unlock ' );
4949
5050 $ this ->mutex ->synchronized (function (): void {});
@@ -55,7 +55,7 @@ public function testUnlockAfterCode()
5555 */
5656 public function testUnlockAfterException ()
5757 {
58- $ this ->mutex ->expects ($ this -> once ())
58+ $ this ->mutex ->expects (self :: once ())
5959 ->method ('unlock ' );
6060
6161 $ this ->expectException (\DomainException::class);
@@ -71,7 +71,7 @@ public function testUnlockFailsAfterCode()
7171 {
7272 $ this ->expectException (LockReleaseException::class);
7373
74- $ this ->mutex ->expects ($ this -> once ())
74+ $ this ->mutex ->expects (self :: once ())
7575 ->method ('unlock ' )
7676 ->willThrowException (new LockReleaseException ());
7777
@@ -85,7 +85,7 @@ public function testUnlockFailsAfterException()
8585 {
8686 $ this ->expectException (LockReleaseException::class);
8787
88- $ this ->mutex ->expects ($ this -> once ())
88+ $ this ->mutex ->expects (self :: once ())
8989 ->method ('unlock ' )
9090 ->willThrowException (new LockReleaseException ());
9191
@@ -99,7 +99,7 @@ public function testUnlockFailsAfterException()
9999 */
100100 public function testCodeResultAvailableAfterFailedUnlock ()
101101 {
102- $ this ->mutex ->expects ($ this -> once ())
102+ $ this ->mutex ->expects (self :: once ())
103103 ->method ('unlock ' )
104104 ->willThrowException (new LockReleaseException ());
105105
@@ -108,8 +108,8 @@ public function testCodeResultAvailableAfterFailedUnlock()
108108 return 'result ' ;
109109 });
110110 } catch (LockReleaseException $ exception ) {
111- $ this -> assertEquals ('result ' , $ exception ->getCodeResult ());
112- $ this -> assertNull ($ exception ->getCodeException ());
111+ self :: assertEquals ('result ' , $ exception ->getCodeResult ());
112+ self :: assertNull ($ exception ->getCodeException ());
113113 }
114114 }
115115
@@ -118,7 +118,7 @@ public function testCodeResultAvailableAfterFailedUnlock()
118118 */
119119 public function testCodeExceptionAvailableAfterFailedUnlock ()
120120 {
121- $ this ->mutex ->expects ($ this -> once ())
121+ $ this ->mutex ->expects (self :: once ())
122122 ->method ('unlock ' )
123123 ->willThrowException (new LockReleaseException ());
124124
@@ -127,8 +127,8 @@ public function testCodeExceptionAvailableAfterFailedUnlock()
127127 throw new \DomainException ('Domain exception ' );
128128 });
129129 } catch (LockReleaseException $ exception ) {
130- $ this -> assertInstanceOf (\DomainException::class, $ exception ->getCodeException ());
131- $ this -> assertEquals ('Domain exception ' , $ exception ->getCodeException ()->getMessage ());
130+ self :: assertInstanceOf (\DomainException::class, $ exception ->getCodeException ());
131+ self :: assertEquals ('Domain exception ' , $ exception ->getCodeException ()->getMessage ());
132132 }
133133 }
134134}
0 commit comments