mageekguy\atoum\mock\stream::getAdapter PHP 메소드

getAdapter() 공개 정적인 메소드

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

Usage Example

예제 #1
0
파일: stream.php 프로젝트: ronan-gloo/atoum
 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