Newer
Older
framework / system / Test / Mock / MockEmail.php
@lonnieezell lonnieezell on 1 May 2020 340 bytes Release v4.0.3
<?php namespace CodeIgniter\Test\Mock;

use CodeIgniter\Email\Email;

class MockEmail extends Email
{
	/**
	 * Record of mock emails sent.
	 *
	 * @var array
	 */
	public $archive = [];

	public function send($autoClear = true)
	{
		if ($autoClear)
		{
			$this->clear();
		}

		$this->archive = get_object_vars($this);
		return true;
	}
}