<commit_before><?php

namespace TaskManagement\Service;

use Zend\View\Renderer\PhpRenderer;
use Zend\View\Model\ViewModel;
use Zend\View\Resolver\TemplateMapResolver;


class NotificationServiceTest extends \PHPUnit_Framework_TestCase {
	

	/**
	 * @var \Guzzle\Http\Client
	 */
	private $mailcatcher;
	/**
	 * @var NotificationService
	 */
	private $notificationService;
	
	protected function setUp() {
		
		$emailTemplates = array('TaskManagement\NotifyMemebersForShareAssignment' => __DIR__.'/../../../../view/task-management/email_templates/hurryup-taskmember.phtml');
		
		$this->notificationService = new NotificationService($emailTemplates);
		$this->mailcatcher = new \Guzzle\Http\Client('http://127.0.0.1:1080');
		$this->cleanEmailMessages();
		
	}
	
	
	
	public function testSendEmailNotificationForShareAssignment(){
		
		$params = array(
				'name' => '<NAME>',
				'taskSubject' => 'new book',
				'taskId' => '11111ab-1111-1111-1111-11111111c500',
				'emailAddress' => '<EMAIL>',
				'url' => 'http://www.example.com'
		);<commit_msg>fixed bug on test<commit_after><?php

namespace TaskManagement\Service;

use Zend\View\Renderer\PhpRenderer;
use Zend\View\Model\ViewModel;
use Zend\View\Resolver\TemplateMapResolver;


class NotificationServiceTest extends \PHPUnit_Framework_TestCase {
	

	/**
	 * @var \Guzzle\Http\Client
	 */
	private $mailcatcher;
	/**
	 * @var NotificationService
	 */
	private $notificationService;
	
	protected function setUp() {
		
		$emailTemplates = array('TaskManagement\NotifyMemebersForShareAssignment' => __DIR__.'/../../../../view/task-management/email_templates/reminder-assignment-shares.phtml');
		
		$this->notificationService = new NotificationService($emailTemplates);
		$this->mailcatcher = new \Guzzle\Http\Client('http://127.0.0.1:1080');
		$this->cleanEmailMessages();
		
	}
	
	
	
	public function testSendEmailNotificationForShareAssignment(){
		
		$params = array(
				'name' => '<NAME>',
				'taskSubject' => 'new book',
				'taskId' => '11111ab-1111-1111-1111-11111111c500',
				'emailAddress' => '<EMAIL>',
				'url' => 'http://www.example.com'
		);
{'fraction_non_alphanumeric': 0.1575212866603595, 'fraction_numerical': 0.03595080416272469, 'mean_word_length': 4.196560196560196, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 2, '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': '6206267', 'n_tokens_mistral': 801, 'n_tokens_neox': 650, 'n_words': 103}