From cb0916d10e4a42a62f0ac8c69ecb4b7a15f398b4 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 20 Jun 2015 10:48:47 -0400 Subject: Add automatic action to send a task by email --- tests/units/Base.php | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'tests/units/Base.php') diff --git a/tests/units/Base.php b/tests/units/Base.php index bc6518fb..d2190c32 100644 --- a/tests/units/Base.php +++ b/tests/units/Base.php @@ -11,22 +11,6 @@ use SimpleLogger\File; date_default_timezone_set('UTC'); -class FakeEmailClient -{ - public $email; - public $name; - public $subject; - public $html; - - public function send($email, $name, $subject, $html) - { - $this->email = $email; - $this->name = $name; - $this->subject = $subject; - $this->html = $html; - } -} - class FakeHttpClient { private $url = ''; @@ -103,7 +87,7 @@ abstract class Base extends PHPUnit_Framework_TestCase $this->container['logger'] = new Logger; $this->container['logger']->setLogger(new File('/dev/null')); $this->container['httpClient'] = new FakeHttpClient; - $this->container['emailClient'] = new FakeEmailClient; + $this->container['emailClient'] = $this->getMockBuilder('EmailClient')->setMethods(array('send'))->getMock(); } public function tearDown() -- cgit v1.2.3