[ 'driver' => '\Psr\Log\NullLogger' ], 'cache' => [ 'enabled' => false, ], 'http' => [], 'instance' => [ 'host' => 'custom.federated', ], ]); // // PHPUnit >= 9 if (method_exists($this, 'assertMatchesRegularExpression')) { $this->assertMatchesRegularExpression( '/ActivityPhp\/\d.\d.\d \(\+https:\/\/custom.federated\)/', Server::server()->config('http.agent') ); // PHPUnit < 9 } else { $this->assertRegExp( '/ActivityPhp\/\d.\d.\d \(\+https:\/\/custom.federated\)/', Server::server()->config('http.agent') ); } } public function testUserAgentCustomization() { $server = new Server([ 'logger' => [ 'driver' => '\Psr\Log\NullLogger' ], 'cache' => [ 'enabled' => false, ], 'http' => [ 'agent' => "MyUserAgent" ], 'instance' => [ 'host' => 'custom.federated', ], ]); $this->assertEquals( Server::server()->config('http.agent'), "MyUserAgent" ); } } __halt_compiler();----SIGNATURE:----vEraRmEuffU2yJwM/ad9xkHiop+xALw0+Io6hIXyp9Y9/C8dl2ZXnu/Uk0Y+ds8KJr8pcVTQKQB1cSeqohxbAW9sDEWczM66cn0pE6Cx65Qx/lDvaUW9BDlSvYZmOvDZ+B/+f54xQqkUkJsZYa0XfbQtRjyJ5CTLkRW8rECKxYFXSTOhp5S1PMms8x/mCJtNM/KgL1y8fBlXlpdMsT3CFdK3dev4czMu4NKCH3yxP9DrdmnyGAbG3WHV/O2LnARyPyGdNvDNKjwILWaZ5qjXTdwdhs0U376O1GmFBDko0gguhh4Q2ImIJitAbP2LATgTkWSBUVFfevOE8JCNcwgrk9jaN7cvCj3VAFFVmGIGlCoZ/XKk/RakqXcVNXLikkfh3hzYnr9pNY88lHjUmPhkHf7xHxuY7KPxzhAf8/gr3wOmjrPth40ZgrJPJcmW/LTe+oyHR7oJ6/sTN8HenusuYohnhUdWW/JmqxwcY/iTHuwv3Ti4EckpH/Aqzp/tjLqFQYRGWFwFz/h30ohc5KLVsV7GymC5b263l8bGsdF/GzfnidXjoOo0u6CMphaJDwtWumrL7MsxxhqSzv5/21T6QcXHnEr6YPmF3IsI8jU2TZsJZ7RZefHo+XwX8q1zMJo8eGXC/kdIBR7aJ4ROcMaJnyjyVDGaXLzIJOF/vcO9QGo=----ATTACHMENT:----NTU4Mjg3MDk0ODQ5MjI5IDIzOTg1NzYxNDg2MzczNjYgNTE3NzE4NzU1NzM1MjU3NA==