<commit_before><?php

namespace Johnsn\GuerrillaMail;

class GuerrillaMailTest extends \PHPUnit_Framework_TestCase
{
    public function testGetEmailAddressNotEmpty()
    {
    	$response = array(
    		'status' => 'success',
    		'data' => array(
    			'msh' => 'making new addre',
    			'email_addr' => '<EMAIL>',
				'email_timestamp' => time(),
				'alias' => 'test_alias',
				'sid_token' => '<PASSWORD>',
			),
		);

    	$connection = $this->getMockBuilder("Johnsn\\GuerrillaMail\\GuerrillaConnect\\CurlConnection")
            ->setConstructorArgs(array("127.0.0.1"))
    		->getMock();

		$connection->expects($this->once())
			->method('retrieve')
			->will($this->returnValue($response));

    	$gm = new GuerrillaMail($connection);

    	$email = $gm->get_email_address();

    	$this->assertNotEmpty($email, 'data');
    }

    public function testGetEmailAddressReturnsEmailAddress()
    {
    	$response = array(
    		'status' => 'success',
    		'data' => array(
    			'msh' => 'making new addre',
    			'email_addr' => '<EMAIL>',<commit_msg>remove 'msh' as this was a debug message<commit_after><?php

namespace Johnsn\GuerrillaMail;

class GuerrillaMailTest extends \PHPUnit_Framework_TestCase
{
    public function testGetEmailAddressNotEmpty()
    {
    	$response = array(
    		'status' => 'success',
    		'data' => array(
    			'email_addr' => '<EMAIL>',
				'email_timestamp' => time(),
				'alias' => 'test_alias',
				'sid_token' => '<PASSWORD>',
			),
		);

    	$connection = $this->getMockBuilder("Johnsn\\GuerrillaMail\\GuerrillaConnect\\CurlConnection")
            ->setConstructorArgs(array("127.0.0.1"))
    		->getMock();

		$connection->expects($this->once())
			->method('retrieve')
			->will($this->returnValue($response));

    	$gm = new GuerrillaMail($connection);

    	$email = $gm->get_email_address();

    	$this->assertNotEmpty($email, 'data');
    }

    public function testGetEmailAddressReturnsEmailAddress()
    {
    	$response = array(
    		'status' => 'success',
    		'data' => array(
    			'email_addr' => '<EMAIL>',
{'fraction_non_alphanumeric': 0.17378780604896785, 'fraction_numerical': 0.005760921747479597, 'mean_word_length': 3.2704918032786887, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '247647', 'n_tokens_mistral': 753, 'n_tokens_neox': 702, 'n_words': 112}