@@ -24,7 +24,7 @@ public function testConstructor(): void
2424 {
2525 $ this ->assertSame ($ this ->mockAdapter , $ this ->agent ->getAdapter ());
2626 $ this ->assertEquals ('' , $ this ->agent ->getDescription ());
27- $ this ->assertEquals ([], $ this ->agent ->getCapabilities ());
27+ $ this ->assertEquals ([], $ this ->agent ->getInstructions ());
2828 }
2929
3030 public function testSetDescription (): void
@@ -37,61 +37,61 @@ public function testSetDescription(): void
3737 $ this ->assertEquals ($ description , $ this ->agent ->getDescription ());
3838 }
3939
40- public function testSetCapabilities (): void
40+ public function testSetInstructions (): void
4141 {
42- $ capabilities = [
43- 'Capability 1 ' => 'This is capability 1 ' ,
44- 'Capability 2 ' => 'This is capability 2 '
42+ $ instructions = [
43+ 'Instruction 1 ' => 'This is instruction 1 ' ,
44+ 'Instruction 2 ' => 'This is instruction 2 '
4545 ];
4646
47- $ result = $ this ->agent ->setCapabilities ( $ capabilities );
47+ $ result = $ this ->agent ->setInstructions ( $ instructions );
4848
4949 $ this ->assertSame ($ this ->agent , $ result );
50- $ this ->assertEquals ($ capabilities , $ this ->agent ->getCapabilities ());
50+ $ this ->assertEquals ($ instructions , $ this ->agent ->getInstructions ());
5151 }
5252
53- public function testAddCapability (): void
53+ public function testAddInstruction (): void
5454 {
55- // Test adding a single capability
56- $ result = $ this ->agent ->addCapability ( ' Capability 1 ' , 'This is capability 1 ' );
55+ // Test adding a single instruction
56+ $ result = $ this ->agent ->addInstruction ( ' Instruction 1 ' , 'This is instruction 1 ' );
5757 $ this ->assertSame ($ this ->agent , $ result );
5858 $ this ->assertEquals ([
59- 'Capability 1 ' => 'This is capability 1 '
60- ], $ this ->agent ->getCapabilities ());
59+ 'Instruction 1 ' => 'This is instruction 1 '
60+ ], $ this ->agent ->getInstructions ());
6161
62- // Test adding a duplicate capability (should update the content)
63- $ this ->agent ->addCapability ( ' Capability 1 ' , 'Updated content ' );
62+ // Test adding a duplicate instruction (should update the content)
63+ $ this ->agent ->addInstruction ( ' Instruction 1 ' , 'Updated content ' );
6464 $ this ->assertEquals ([
65- 'Capability 1 ' => 'Updated content '
66- ], $ this ->agent ->getCapabilities ());
65+ 'Instruction 1 ' => 'Updated content '
66+ ], $ this ->agent ->getInstructions ());
6767
68- // Test adding a second capability
69- $ this ->agent ->addCapability ( ' Capability 2 ' , 'This is capability 2 ' );
68+ // Test adding a second instruction
69+ $ this ->agent ->addInstruction ( ' Instruction 2 ' , 'This is instruction 2 ' );
7070 $ this ->assertEquals ([
71- 'Capability 1 ' => 'Updated content ' ,
72- 'Capability 2 ' => 'This is capability 2 '
73- ], $ this ->agent ->getCapabilities ());
71+ 'Instruction 1 ' => 'Updated content ' ,
72+ 'Instruction 2 ' => 'This is instruction 2 '
73+ ], $ this ->agent ->getInstructions ());
7474 }
7575
7676 public function testFluentInterface (): void
7777 {
7878 $ description = 'Test Description ' ;
79- $ capabilities = [
80- 'Cap 1 ' => 'Content 1 ' ,
81- 'Cap 2 ' => 'Content 2 '
79+ $ instructions = [
80+ 'Instruction 1 ' => 'Content 1 ' ,
81+ 'Instruction 2 ' => 'Content 2 '
8282 ];
8383
8484 $ result = $ this ->agent
8585 ->setDescription ($ description )
86- ->setCapabilities ( $ capabilities )
87- ->addCapability ( ' Cap 3 ' , 'Content 3 ' );
86+ ->setInstructions ( $ instructions )
87+ ->addInstruction ( ' Instruction 3 ' , 'Content 3 ' );
8888
8989 $ this ->assertSame ($ this ->agent , $ result );
9090 $ this ->assertEquals ($ description , $ this ->agent ->getDescription ());
9191 $ this ->assertEquals ([
92- 'Cap 1 ' => 'Content 1 ' ,
93- 'Cap 2 ' => 'Content 2 ' ,
94- 'Cap 3 ' => 'Content 3 '
95- ], $ this ->agent ->getCapabilities ());
92+ 'Instruction 1 ' => 'Content 1 ' ,
93+ 'Instruction 2 ' => 'Content 2 ' ,
94+ 'Instruction 3 ' => 'Content 3 '
95+ ], $ this ->agent ->getInstructions ());
9696 }
9797}
0 commit comments