[ '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:----r905b0XpyK5wzZdPTkvelIyuz5QQdDJfJfzgxmkhKnCRPmx0KdkEjkvgcizYinSLoeDT/+PEV84+AFaGFlrCgcZqEjFVoLw//ImuAoN4DYdfp5/k/tx4UJ6PQcre8aOPWgnaz6LTluct4MlaD679VvMXopIvq7EfY21X6U7Uhxl/4KDfs/d/rTWjMpdKy5ee3R09JCF/1UEACG9zmHM+9khFveg1JogVRPVFJVOl1RHNX+kHo//P0qzq4ULZVGXIzWk9Fh4oygKSJIw7A7wt/HuiZOBk2Xkj8XSf0QBH3py10Z4H96viQDEjgttcN5gw3kxPjCA1OacuFKbfYuNFlcvrE+zcxvazdTSxF+zqWnqI8tek+Ti9tSMCOT71LmkBAtFtmb3ijMCY9DTJnmZywDDUiFDIhsRRyZo1/NFlPbLCx+QvkFEV+G1wVvopfTTfkdoMky7NvVSVFfWvS8eS/fon5SnWqq8viGSsBNRA5T9ChJjEtcY63gOfjE1z5lqc+GrNLisMPvXUgDg9ZN+g5q+U2gfNQqwC54GCIC8LFhC0I8UWQgQ3g2lge7NQNBzRNtdvYQTFrHlhMRG59++/TaZii7NQg2tfIlVXWm4xqaEZzDSMW4D0SkGKVKTscWtnLgPmwSHyqwujh5DTVf39jEHh53VRTHEpEzwcgMypXVY=----ATTACHMENT:----OTYxNzAxNjkxNjcyNDYzIDcyNDUxNTY2MTEwMzYxMzEgMjMyODE2NzAxNjA0NTg5NQ==