PHP Classes

File: test/persistence/ZHandlersocketDriverTest.php

Recommend this page to a friend!
  Classes of Victor Bolshov   Tiny PHP ORM Framework   test/persistence/ZHandlersocketDriverTest.php   Download  
File: test/persistence/ZHandlersocketDriverTest.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: Tiny PHP ORM Framework
Map objects to databases using composed queries
Author: By
Last change: Merge branch 'master' of github.com:crocodile2u/tinyorm
Date: 7 years ago
Size: 589 bytes
 

Contents

Class file image Download
<?php

namespace tinyorm\test\persistence;

use
tinyorm\persistence\ZHandlersocketDriver;
use
tinyorm\test\PersistenceDriverTest;

class
ZHandlersocketDriverTest extends PersistenceDriverTest {

    protected function
isTestSkipped()
    {
        return !
class_exists(\ZHandlersocket\Client::class);
    }

   
/**
     * @return ZHandlersocketDriver
     */
   
protected function createPersistenceDriver() {
       
$client = new \ZHandlersocket\Client();
       
$client->setLogger(new \Zhandlersocket\DebugLogger());
        return new
ZHandlersocketDriver($client, "test");
    }


}