Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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:
Date: 1 year 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());
    }
}