title: Symfony : Testing email sending in command
body: <p>Good morning.</p>
  
  <p>I would like to test sending email in my Symfony Command.</p>
  
  <p>My email is send with <code>\Swift_Mailer</code> by </p>
  
  <pre><code>$this-&gt;mailer-&gt;send($message);
  </code></pre>
  
  <p>I try to use this:</p>
  
  <p><a href="http://symfony.com/doc/current/cookbook/email/testing.html" rel="nofollow">http://symfony.com/doc/current/cookbook/email/testing.html</a></p>
  
  <p>But <code>$this-&gt;client-&gt;getProfile()</code> and <code>Symfony Response</code> is not available in Symfony Command.</p>
  
  <pre><code>Argument 1 passed to Symfony\Component\HttpKernel\Profiler\Profiler::loadProfileFromResponse() must be an instance of Symfony\Component\HttpFoundation\Response, null given,
  </code></pre>
  
  <p>Now how can i verify that my email is send correctly?</p>