* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Monolog\Attribute; use PHPUnit\Framework\TestCase; /** * @requires PHP 8.0 */ final class AsMonologProcessorTest extends TestCase { public function test(): void { $asMonologProcessor = new AsMonologProcessor('channel', 'handler', 'method'); $this->assertSame('channel', $asMonologProcessor->channel); $this->assertSame('handler', $asMonologProcessor->handler); $this->assertSame('method', $asMonologProcessor->method); $asMonologProcessor = new AsMonologProcessor(null, null, null); $this->assertNull($asMonologProcessor->channel); $this->assertNull($asMonologProcessor->handler); $this->assertNull($asMonologProcessor->method); } }