<?php

namespace Orbt\ResourceMirror\Tests\Event;

use Orbt\ResourceMirror\Event\ResourceEvent;
use Orbt\ResourceMirror\Resource\GenericResource;

class ResourceEventTest extends \PHPUnit_Framework_TestCase
{
    /**
     * A resource event can be instantiated.
     */
    public function testCreate()
    {
        $event = new ResourceEvent(new GenericResource('test'));
        $this->assertInstanceOf('Orbt\ResourceMirror\Event\ResourceEvent', $event);
    }
}

<?php

namespace Orbt\ResourceMirror\Tests\Event;

use Orbt\ResourceMirror\Event\ResourceEvent;
use Orbt\ResourceMirror\Resource\GenericResource;

class ResourceEventTest extends \PHPUnit_Framework_TestCase
{
    /**
     * A resource event can be instantiated.
     */
    public function testCreate()
    {
        $event = new ResourceEvent(new GenericResource('test'));
        $this->assertInstanceOf('Orbt\ResourceMirror\Event\ResourceEvent', $event);
    }

    /**
     * A resource event returns its resource.
     *
     * @depends testCreate
     */
    public function testGetResource()
    {
        $event = new ResourceEvent(new GenericResource('test'));
        $this->assertInstanceOf('Orbt\ResourceMirror\Resource\Resource', $event->getResource());
    }
}

Test event resource getter method.
Test event resource getter method.
