Skip to content

Commit ac693a5

Browse files
committed
Fix use statement order and use $this->assertSame() in tests
1 parent 8a10410 commit ac693a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/toolbox/weather-event.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
*/
1111

1212
use Symfony\AI\Agent\Agent;
13+
use Symfony\AI\Agent\Bridge\OpenMeteo\OpenMeteo;
1314
use Symfony\AI\Agent\Toolbox\AgentProcessor;
1415
use Symfony\AI\Agent\Toolbox\Event\ToolCallsExecuted;
15-
use Symfony\AI\Agent\Bridge\OpenMeteo\OpenMeteo;
1616
use Symfony\AI\Agent\Toolbox\Toolbox;
1717
use Symfony\AI\Platform\Bridge\OpenAi\PlatformFactory;
1818
use Symfony\AI\Platform\Message\Message;

src/agent/src/Bridge/OpenMeteo/Tests/OpenMeteoTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testCurrent()
3333
'wind_speed' => '10.7km/h',
3434
];
3535

36-
self::assertSame($expected, $actual);
36+
$this->assertSame($expected, $actual);
3737
}
3838

3939
public function testForecast()
@@ -65,6 +65,6 @@ public function testForecast()
6565
],
6666
];
6767

68-
self::assertSame($expected, $actual);
68+
$this->assertSame($expected, $actual);
6969
}
7070
}

0 commit comments

Comments
 (0)