PHP Class Alcaeus\MongoDbAdapter\Tests\Mongo\MongoGridFSFileTest

Show file Open project: alcaeus/mongo-php-adapter

Public Methods

Method Description
testFileProperty ( )
testGetBytes ( )
testGetFilename ( )
testGetResource ( )
testGetSize ( )
testSerialize ( )
testWrite ( )
testWriteSpecifyFilename ( )

Protected Methods

Method Description
getFile ( $extra = [] )
getGridFS ( string $name = 'testfs', MongoDB $database = null ) : MongoGridFS
prepareFile ( $data = 'abcd', $extra = [] )

Method Details

getFile() protected method

protected getFile ( $extra = [] )

getGridFS() protected method

protected getGridFS ( string $name = 'testfs', MongoDB $database = null ) : MongoGridFS
$name string
$database MongoDB
return MongoGridFS

prepareFile() protected method

protected prepareFile ( $data = 'abcd', $extra = [] )

testFileProperty() public method

public testFileProperty ( )

testGetBytes() public method

public testGetBytes ( )

testGetFilename() public method

public testGetFilename ( )

testGetResource() public method

public testGetResource ( )

testGetSize() public method

public testGetSize ( )

testSerialize() public method

public testSerialize ( )

testWrite() public method

public testWrite ( )

testWriteSpecifyFilename() public method