55use NeuronAI \Chat \History \AbstractChatHistory ;
66use NeuronAI \Chat \History \FileChatHistory ;
77use NeuronAI \Chat \History \InMemoryChatHistory ;
8- use NeuronAI \Chat \Messages \Message ;
98use NeuronAI \Chat \Messages \Usage ;
109use NeuronAI \Chat \Messages \UserMessage ;
1110use NeuronAI \Exceptions \ChatHistoryException ;
@@ -23,20 +22,20 @@ public function setUp(): void
2322 {
2423 }
2524
26- public function testChatHistoryInstance ()
25+ public function test_chat_history_instance ()
2726 {
2827 $ history = new InMemoryChatHistory ();
2928 $ this ->assertInstanceOf (AbstractChatHistory::class, $ history );
3029 }
3130
32- public function testChatHistoryAddMessage ()
31+ public function test_chat_history_add_message ()
3332 {
3433 $ history = new InMemoryChatHistory ();
3534 $ history ->addMessage (new UserMessage ('Hello! ' ));
3635 $ this ->assertCount (1 , $ history ->getMessages ());
3736 }
3837
39- public function testChatHistoryTruncate ()
38+ public function test_chat_history_truncate ()
4039 {
4140 $ message = new UserMessage ('Hello! ' );
4241 $ message ->setUsage (new Usage (100 , 100 ));
@@ -46,7 +45,7 @@ public function testChatHistoryTruncate()
4645 $ this ->assertCount (1 , $ history ->getMessages ());
4746 }
4847
49- public function testChatHistoryClear ()
48+ public function test_chat_history_clear ()
5049 {
5150 $ history = new InMemoryChatHistory ();
5251 $ history ->addMessage (new UserMessage ('Hello! ' ));
@@ -58,7 +57,7 @@ public function testChatHistoryClear()
5857 /**
5958 * @throws ChatHistoryException
6059 */
61- public function testFileChatHistory ()
60+ public function test_file_chat_history ()
6261 {
6362 $ history = new FileChatHistory (__DIR__ , 'test ' );
6463 $ this ->assertFileDoesNotExist (__DIR__ .DIRECTORY_SEPARATOR .'neuron_test.chat ' );
@@ -72,7 +71,7 @@ public function testFileChatHistory()
7271 $ this ->assertCount (0 , $ history ->getMessages ());
7372 }
7473
75- public function testFileChatHistoryInit ()
74+ public function test_file_chat_history_init ()
7675 {
7776 $ history = new FileChatHistory (__DIR__ , 'test ' );
7877 $ history ->addMessage (new UserMessage ('Hello! ' ));
0 commit comments