<commit_before><?php

namespace Postmark\Tests;

require_once __DIR__ . "/PostmarkClientBaseTest.php";

use \Postmark\PostmarkClient;

class PostmarkClientServerTest extends PostmarkClientBaseTest {
	
	function testClientCanGetServerInformation() {
		$tk = parent::$testKeys;
		$client = new PostmarkClient($tk->WRITE_TEST_SERVER_TOKEN);
		$server = $client->getServer();
		$this->assertNotEmpty($server);
	}

	function testClientCanEditServerInformation() {
		$tk = parent::$testKeys;
		
		$client = new PostmarkClient($tk->WRITE_TEST_SERVER_TOKEN);
		$originalServer = $client->getServer();
		
		$server = $client->editServer('testing-server-1234');

		//set it back to the original name.
		$client->editServer($originalServer->Name);
		$this->assertNotSame($originalServer->Name, $server->Name);
	}
}
?><commit_msg>Fixing alter testing server name.<commit_after><?php

namespace Postmark\Tests;

require_once __DIR__ . "/PostmarkClientBaseTest.php";

use \Postmark\PostmarkClient;

class PostmarkClientServerTest extends PostmarkClientBaseTest {

	function testClientCanGetServerInformation() {
		$tk = parent::$testKeys;
		$client = new PostmarkClient($tk->WRITE_TEST_SERVER_TOKEN);
		$server = $client->getServer();
		$this->assertNotEmpty($server);
	}

	function testClientCanEditServerInformation() {
		$tk = parent::$testKeys;

		$client = new PostmarkClient($tk->WRITE_TEST_SERVER_TOKEN);
		$originalServer = $client->getServer();

		$server = $client->editServer('testing-server-' . date('c'));

		//set it back to the original name.
		$client->editServer($originalServer->Name);
		$this->assertNotSame($originalServer->Name, $server->Name);
	}
}
?>
{'fraction_non_alphanumeric': 0.14345991561181434, 'fraction_numerical': 0.0024110910186859553, 'mean_word_length': 5.859504132231405, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '504756', 'n_tokens_mistral': 544, 'n_tokens_neox': 512, 'n_words': 91}