File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5+ /*
6+ * This file is part of the official PHP MCP SDK.
7+ *
8+ * A collaboration between Symfony and the PHP Foundation.
9+ *
10+ * For the full copyright and license information, please view the LICENSE
11+ * file that was distributed with this source code.
12+ */
13+
514namespace Mcp \Tests \Server ;
615
716use Mcp \JsonRpc \MessageFactory ;
817use Mcp \Server \NotificationPublisher ;
918use PHPUnit \Framework \TestCase ;
1019use Symfony \Contracts \EventDispatcher \Event ;
1120
21+ /**
22+ * @author Aggelos Bellos <[email protected] > 23+ */
1224class NotificationPublisherTest extends TestCase
1325{
1426 public function testOnEventCreatesNotification (): void
@@ -25,12 +37,12 @@ public function testOnEventCreatesNotification(): void
2537
2638 $ flushedNotifications = $ notificationPublisher ->flush ();
2739
28- $ this ->assertCount (count ($ expectedNotifications ), $ flushedNotifications );
40+ $ this ->assertCount (\ count ($ expectedNotifications ), $ flushedNotifications );
2941
3042 foreach ($ flushedNotifications as $ index => $ notification ) {
3143 $ this ->assertInstanceOf ($ expectedNotifications [$ index ], $ notification );
3244 }
3345
3446 $ this ->assertEmpty ($ notificationPublisher ->flush ());
3547 }
36- }
48+ }
You can’t perform that action at this time.
0 commit comments