registerPlugin($app['monolog']); return $app; } public function testSend() { $client = $this->createClient(); $crawler = $client->request('POST', '/', array("somedata"=>"to_send")); $this->assertEquals(1, $this->app['mailer.logger']->countMessages(), "Only one email sent"); $emails = $this->app['mailer.logger']->getMessages(); $this->assertEquals("This is my subject", $emails[0]->getSubject(), "Subject is correct"); } }*/