@@ -40,7 +40,7 @@ protected function setUp(): void
4040
4141 public function testPassesModelId ()
4242 {
43- $ this ->bedrockClient ->expects (self :: once ())
43+ $ this ->bedrockClient ->expects ($ this -> once ())
4444 ->method ('invokeModel ' )
4545 ->with ($ this ->callback (function ($ arg ) {
4646 $ this ->assertInstanceOf (InvokeModelRequest::class, $ arg );
@@ -60,7 +60,7 @@ public function testPassesModelId()
6060
6161 public function testUnsetsModelName ()
6262 {
63- $ this ->bedrockClient ->expects (self :: once ())
63+ $ this ->bedrockClient ->expects ($ this -> once ())
6464 ->method ('invokeModel ' )
6565 ->with ($ this ->callback (function ($ arg ) {
6666 $ this ->assertInstanceOf (InvokeModelRequest::class, $ arg );
@@ -82,7 +82,7 @@ public function testUnsetsModelName()
8282
8383 public function testSetsToolOptionsIfToolsEnabled ()
8484 {
85- $ this ->bedrockClient ->expects (self :: once ())
85+ $ this ->bedrockClient ->expects ($ this -> once ())
8686 ->method ('invokeModel ' )
8787 ->with ($ this ->callback (function ($ arg ) {
8888 $ this ->assertInstanceOf (InvokeModelRequest::class, $ arg );
@@ -99,7 +99,7 @@ public function testSetsToolOptionsIfToolsEnabled()
9999 $ this ->modelClient = new NovaModelClient ($ this ->bedrockClient );
100100
101101 $ options = [
102- 'tools ' => ['Tool ' ]
102+ 'tools ' => ['Tool ' ],
103103 ];
104104
105105 $ response = $ this ->modelClient ->request ($ this ->model , ['message ' => 'test ' ], $ options );
@@ -108,7 +108,7 @@ public function testSetsToolOptionsIfToolsEnabled()
108108
109109 public function testPassesTemperature ()
110110 {
111- $ this ->bedrockClient ->expects (self :: once ())
111+ $ this ->bedrockClient ->expects ($ this -> once ())
112112 ->method ('invokeModel ' )
113113 ->with ($ this ->callback (function ($ arg ) {
114114 $ this ->assertInstanceOf (InvokeModelRequest::class, $ arg );
@@ -126,7 +126,7 @@ public function testPassesTemperature()
126126 $ this ->modelClient = new NovaModelClient ($ this ->bedrockClient );
127127
128128 $ options = [
129- 'temperature ' => 0.35
129+ 'temperature ' => 0.35 ,
130130 ];
131131
132132 $ response = $ this ->modelClient ->request ($ this ->model , ['message ' => 'test ' ], $ options );
@@ -135,7 +135,7 @@ public function testPassesTemperature()
135135
136136 public function testPassesMaxTokens ()
137137 {
138- $ this ->bedrockClient ->expects (self :: once ())
138+ $ this ->bedrockClient ->expects ($ this -> once ())
139139 ->method ('invokeModel ' )
140140 ->with ($ this ->callback (function ($ arg ) {
141141 $ this ->assertInstanceOf (InvokeModelRequest::class, $ arg );
@@ -153,7 +153,7 @@ public function testPassesMaxTokens()
153153 $ this ->modelClient = new NovaModelClient ($ this ->bedrockClient );
154154
155155 $ options = [
156- 'max_tokens ' => 1000
156+ 'max_tokens ' => 1000 ,
157157 ];
158158
159159 $ response = $ this ->modelClient ->request ($ this ->model , ['message ' => 'test ' ], $ options );
@@ -162,7 +162,7 @@ public function testPassesMaxTokens()
162162
163163 public function testPassesBothTemperatureAndMaxTokens ()
164164 {
165- $ this ->bedrockClient ->expects (self :: once ())
165+ $ this ->bedrockClient ->expects ($ this -> once ())
166166 ->method ('invokeModel ' )
167167 ->with ($ this ->callback (function ($ arg ) {
168168 $ this ->assertInstanceOf (InvokeModelRequest::class, $ arg );
@@ -181,7 +181,7 @@ public function testPassesBothTemperatureAndMaxTokens()
181181
182182 $ options = [
183183 'max_tokens ' => 1000 ,
184- 'temperature ' => 0.35
184+ 'temperature ' => 0.35 ,
185185 ];
186186
187187 $ response = $ this ->modelClient ->request ($ this ->model , ['message ' => 'test ' ], $ options );
0 commit comments