Exemplo n.º 1
0
        return 'dummy:' . $this->id;
    }
}
class DummyContentProvider extends ContentProvider
{
    function getNameSpace()
    {
        return "dummy";
    }
    function getContentFromObjectId($id)
    {
        return new DummyContentObject($id);
    }
}
ContentManager::registerProvider(new DummyContentProvider());
ContentManager::registerExtension(new DummyContentExtension());
/**
 * @description Content Wrappers
 */
class LeptonContentTests extends LunitCase
{
    private $co = null;
    function __construct()
    {
    }
    /**
     * @description Testing provider for namespace dummy
     */
    function providertest()
    {
        $this->co = ContentManager::get('dummy:hello-world');