/** * We want to be able to pass a parameter to retrieveSQLSchema which will * allow us to retrieve only a single schema, we'll the DB table name as a * search point. * * To do this I'll refactor retrieveSQLSchema to return bool & populate * our private schema property which will be accessed via getSchema & findSchema * */ function testGetSchemaReturnsEmptyArrayIfNotPopulated() { $this->_dynamicDBStub->expects($this->once())->method('getSchemas')->will($this->returnValue(array())); $this->assertType('array', $this->_dynamicDBStub->getSchemas()); }