<commit_before><?php

/**
 * This file is part of RatchetCommands for CakePHP.
 *
 ** (c) 2013 <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

App::uses('RatchetMessageQueueDummyCommand', 'TestRatchet.Lib/MessageQueue/Command');

abstract class AbstractTransportTest extends CakeTestCase {

/**
 * {@inheritdoc}
 */
	public function setUp() {
		parent::setUp();

		$this->_pluginPath = App::pluginPath('RatchetCommands');
		App::build(array(
			'Plugin' => array($this->_pluginPath . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS )
		));
		CakePlugin::load('TestRatchetCommands');

		$this->loop = \React\EventLoop\Factory::create();

		$event = new CakeEvent('Rachet.WampServer.construct', $this, array(
			'loop' => $this->loop,
		));
		CakeEventManager::instance()->dispatch($event);
	}

/**
 * {@inheritdoc}
 */
	public function tearDown() {
		unset($this->Transport);
		CakePlugin::unload('TestRatchetCommands');

		parent::tearDown();<commit_msg>As expected that didn't work out<commit_after><?php

/**
 * This file is part of RatchetCommands for CakePHP.
 *
 ** (c) 2013 <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

App::uses('RatchetMessageQueueDummyCommand', 'TestRatchet.Lib/MessageQueue/Command');

abstract class AbstractTransportTest extends CakeTestCase {

/**
 * {@inheritdoc}
 */
	public function setUp() {
		parent::setUp();

		$this->_pluginPath = App::pluginPath('RatchetCommands');
		App::build(array(
			'Plugin' => array($this->_pluginPath . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS )
		));
		CakePlugin::load('TestRatchetCommands');

		$this->loop = React\EventLoop\Factory::create();

		$event = new CakeEvent('Rachet.WampServer.construct', $this, array(
			'loop' => $this->loop,
		));
		CakeEventManager::instance()->dispatch($event);
	}

/**
 * {@inheritdoc}
 */
	public function tearDown() {
		unset($this->Transport);
		CakePlugin::unload('TestRatchetCommands');

		parent::tearDown();
{'fraction_non_alphanumeric': 0.16682464454976303, 'fraction_numerical': 0.0037914691943127963, 'mean_word_length': 4.659517426273458, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, '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': '2768149', 'n_tokens_mistral': 719, 'n_tokens_neox': 664, 'n_words': 148}