You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
31 lines
842 B
PHP
31 lines
842 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the PHPFlasher package.
|
|
* (c) Younes KHOUBZA <younes.khoubza@gmail.com>
|
|
*/
|
|
|
|
namespace Flasher\Tests\Prime\Stamp;
|
|
|
|
use Flasher\Prime\Notification\Envelope;
|
|
use Flasher\Prime\Stamp\HandlerStamp;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class HandlerStampTest extends TestCase
|
|
{
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function testConstruct()
|
|
{
|
|
$notification = $this->getMockBuilder('Flasher\Prime\Notification\NotificationInterface')->getMock();
|
|
$stamp = new HandlerStamp('toastr');
|
|
|
|
$envelop = new Envelope($notification, array($stamp));
|
|
|
|
$this->assertEquals($stamp, $envelop->get('Flasher\Prime\Stamp\HandlerStamp'));
|
|
$this->assertInstanceOf('Flasher\Prime\Stamp\HandlerStamp', $stamp);
|
|
$this->assertEquals('toastr', $stamp->getHandler());
|
|
}
|
|
}
|