PHP Classes

File: tests/Wingu/OctopusCore/EventDispatcher/Tests/Unit/ExceptionEventTest.php

Recommend this page to a friend!
  Classes of Protung Dragos   PHP Event Dispatcher   tests/Wingu/OctopusCore/EventDispatcher/Tests/Unit/ExceptionEventTest.php   Download  
File: tests/Wingu/OctopusCore/EventDispatcher/Tests/Unit/ExceptionEventTest.php
Role: Unit test script
Content type: text/plain
Description:
Class: PHP Event Dispatcher
Register events and call registered listeners
Author: By
Last change: Initial commit
Date: 2 years ago
Size: 380 bytes
 

Contents

Class file image Download
<?php

namespace Wingu\OctopusCore\EventDispatcher\Tests\Unit;

use
Wingu\OctopusCore\EventDispatcher\ExceptionEvent;

class
ExceptionEventTest extends TestCase {

    public function
testGetException() {
       
$exception = $this->getMock('Exception');
       
$event = new ExceptionEvent(null, $exception);
       
$this->assertSame($exception, $event->getException());
    }
}