mageekguy\atoum\mock\stream::getAdapter PHP Method

getAdapter() public static method

public static getAdapter ( )
    public static function getAdapter()
    {
        return static::$adapter = static::$adapter ?: new adapter();
    }

Usage Example

Esempio n. 1
0
 public function testGetAdapter()
 {
     $this->object(mock\stream::getAdapter())->isEqualTo(new adapter())->if(mock\stream::setAdapter($adapter = new adapter()))->then->object(mock\stream::getAdapter())->isIdenticalTo($adapter);
 }
All Usage Examples Of mageekguy\atoum\mock\stream::getAdapter