<commit_before><?php
namespace Rocketeer\TestCases\Modules;

use Illuminate\Support\Arr;
use Rocketeer\TestCases\AbstractTask;
use Rocketeer\TestCases\Assertion;

trait RocketeerAssertions
{
	/**
	 * Assert that the current connection is a specific one
	 *
	 * @param string $connection
	 */
	protected function assertConnectionEquals($connection)
	{
		$this->assertEquals($connection, $this->connections->getConnection());
	}

	/**
	 * Assert that the current repository equals
	 *
	 * @param string $repository<commit_msg>Added helper for issue #338 (assertCurrentServerEquals)<commit_after><?php
namespace Rocketeer\TestCases\Modules;

use Illuminate\Support\Arr;
use Rocketeer\TestCases\AbstractTask;
use Rocketeer\TestCases\Assertion;

trait RocketeerAssertions
{
	/**
	 * Assert that the current connection is a specific one
	 *
	 * @param string $connection
	 */
	protected function assertConnectionEquals($connection)
	{
		$this->assertEquals($connection, $this->connections->getConnection());
	}

    /**
	 * Assert that the current server is a specific one
	 *
	 * @param string $connection
	 */
	protected function assertCurrentServerEquals($server)
	{
		$this->assertEquals($server, $this->connections->getServer());
	}
	/**
	 * Assert that the current repository equals
	 *
	 * @param string $repository
{'fraction_non_alphanumeric': 0.11018237082066869, 'fraction_numerical': 0.0022796352583586625, 'mean_word_length': 4.879464285714286, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '4732457', 'n_tokens_mistral': 387, 'n_tokens_neox': 367, 'n_words': 95}