| 12345678910111213141516171819202122232425262728 |
- <?php
- namespace Alcaeus\MongoDbAdapter\Tests\Mongo;
- use Alcaeus\MongoDbAdapter\Tests\TestCase;
- class MongoLogTest extends Testcase
- {
- public function testSetCallback()
- {
- $foo = function () {
- };
- $this->assertTrue(\MongoLog::setCallback($foo));
- $this->assertSame($foo, \MongoLog::getCallback());
- }
- public function testLevel()
- {
- \MongoLog::setLevel(2);
- $this->assertSame(2, \MongoLog::getLevel(2));
- }
- public function testModule()
- {
- \MongoLog::setModule(2);
- $this->assertSame(2, \MongoLog::getModule(2));
- }
- }
|