1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-20 20:01:52 +02:00

Merge remote-tracking branch 'origin/master'

This commit is contained in:
Jordi Boggiano
2012-12-14 12:21:55 +01:00
2 changed files with 13 additions and 1 deletions

View File

@@ -16,6 +16,14 @@ use Monolog\Logger;
class MongoDBHandlerTest extends TestCase
{
/**
* @expectedException InvalidArgumentException
*/
public function testConstructorShouldThrowExceptionForInvalidMongo()
{
new MongoDBHandler(new \stdClass(), 'DB', 'Collection');
}
public function testHandle()
{
$mongo = $this->getMock('Mongo', array('selectCollection'));