<commit_before><?php
/**
 *
 * @author <NAME>
 */

namespace tests\dmerten\MessageQueue;


class ListenerTest extends \PHPUnit_Framework_TestCase
{

	public function testDispatch()
	{
		$this->markTestSkipped('TODO');
		/**
		 * $stub = $this->getMockForAbstractClass('\dmerten\MessageQueue\Listener');
		 * $stub->expects($this->once())->method('getEventType')->will($this->returnValue('\dmerten\Test'));
		 * $event = $this->getMockBuilder('\dmerten\Import\RefreshFundCache')->getMock();
		 * $event->expects($this->once())->method('getType')->will($this->returnValue('\dmerten\Test'));
		 * $stub->dispatch($event);
		 *
		 * **/
	}

	public function testDispatchFailed()
	{
		$this->markTestSkipped('TODO');
		/**
		 * $this->setExpectedException('\dmerten\MessageQueue\Worker\Dispatcher\InvalidEventException');
		 * $stub = $this->getMockForAbstractClass('\dmerten\MessageQueue\Listener');
		 * $stub->expects($this->once())->method('getEventType')->will($this->returnValue('\dmerten\Test'));
		 * $event = $this->getMockBuilder('\dmerten\Import\RefreshFundCache')->getMock();
		 * $event->expects($this->once())->method('getType')->will($this->returnValue('\dmerten\Import\RefreshFundCache'));
		 * $stub->dispatch($event);
		 * **/
	}

}<commit_msg>Reactive unittest<commit_after><?php
/**
 *
 * @author <NAME>
 */

namespace tests\dmerten\MessageQueue;


class ListenerTest extends \PHPUnit_Framework_TestCase
{

	public function testDispatch()
	{
		$stub = $this->getMockForAbstractClass('\dmerten\MessageQueue\Listener');
		$stub->expects($this->once())->method('getEventType')->will($this->returnValue('\dmerten\Test'));
		$event = $this->getMockBuilder('\dmerten\Import\RefreshFundCache')->getMock();
		$event->expects($this->once())->method('getType')->will($this->returnValue('\dmerten\Test'));
		$stub->dispatch($event);
	}

	public function testDispatchFailed()
	{
		$this->markTestSkipped('TODO');
		/**
		 * $this->setExpectedException('\dmerten\MessageQueue\Worker\Dispatcher\InvalidEventException');
		 * $stub = $this->getMockForAbstractClass('\dmerten\MessageQueue\Listener');
		 * $stub->expects($this->once())->method('getEventType')->will($this->returnValue('\dmerten\Test'));
		 * $event = $this->getMockBuilder('\dmerten\Import\RefreshFundCache')->getMock();
		 * $event->expects($this->once())->method('getType')->will($this->returnValue('\dmerten\Import\RefreshFundCache'));
		 * $stub->dispatch($event);
		 * **/
	}

}
{'fraction_non_alphanumeric': 0.21927317272356064, 'fraction_numerical': 0.0, 'mean_word_length': 5.767955801104972, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 66, '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': '5983617', 'n_tokens_mistral': 825, 'n_tokens_neox': 795, 'n_words': 64}