<?php

/**
 * @author lostintime
 */
class ResourceTest extends PHPUnit_Framework_TestCase
{
    public function testMagicGet()
    {
        $obj = $this->getMockForAbstractClass('\\Lit\\Api\\Resource');
        assertInstanceOf('\\Lit\\Api\\Resource', $obj);
        assertInstanceOf('\\Lit\\Api\\Resource', $obj->__get());
        $this->setExpectedException('Lit\\Api\\Exception', 'resource not found');
        $obj->{'sub_resurce'};
    }
}
