PHP Class Doctrine\MongoDB\Tests\Query\BuilderTest

Inheritance: extends Doctrine\MongoDB\Tests\BaseTest
Datei anzeigen Open project: doctrine/mongodb

Public Methods

Method Description
provideCurrentDateOptions ( )
provideExcludeProjections ( )
providePoint ( )
provideProxiedExprMethods ( )
provideSelectProjections ( )
provideSortOrders ( )
testAddElemMatch ( )
testAddNot ( )
testBitAndUpdateQuery ( )
testBitOrUpdateQuery ( )
testBitXorUpdateQuery ( )
testComplexUpdateQuery ( )
testCurrentDateInvalidType ( )
testCurrentDateUpdateQuery ( $type )
testDateRange ( )
testDeepClone ( )
testDistanceMultipler ( )
testDistanceMultiplerRequiresGeoNearCommand ( )
testExclude ( array $args, array $expected )
testFinalizeShouldThrowExceptionForUnsupportedQueryType ( )
testFindQuery ( )
testGeoNearWithBothArguments ( )
testGeoNearWithSingleArgument ( $point, array $near, $spherical )
testIncUpdateQuery ( )
testMapReduceOptionsRequiresMapReduceCommand ( )
testMapReduceQueryWithMultipleMethodsAndQueryArray ( )
testMapReduceQueryWithSingleMethod ( )
testMaxDistanceWithGeoNearCommand ( )
testMinDistanceWithGeoNearCommand ( )
testMultipleUpdateQuery ( )
testOutRequiresMapReduceCommand ( )
testProxiedExprMethods ( $method, array $args = [] )
testQueryIsIterable ( )
testReduceShouldThrowExceptionForUnsupportedQueryType ( )
testSelect ( array $args, array $expected )
testSelectElemMatchWithArray ( )
testSelectElemMatchWithExpr ( )
testSelectMeta ( )
testSelectSliceWithCount ( )
testSelectSliceWithSkipAndLimit ( )
testSetOnInsert ( )
testSetReadPreference ( )
testSortMetaDoesNotProjectExistingField ( )
testSortMetaDoesProjectMissingField ( )
testSortWithArrayOfFieldNameAndOrderPairs ( )
testSortWithFieldNameAndDefaultOrder ( )
testSortWithFieldNameAndOrder ( $order, $expectedOrder )
testSpherical ( )
testSphericalRequiresGeoNearCommand ( )
testThatAndAcceptsAnotherQuery ( )
testThatNorAcceptsAnotherQuery ( )
testThatOrAcceptsAnotherQuery ( )
testUnsetField ( )
testUpsertUpdateQuery ( )

Private Methods

Method Description
assertArrayHasKeyValue ( $expected, $array, $message = '' )
getMockCollection ( )
getMockExpr ( )
getMockGeometry ( )
getMockPoint ( $json )
getStubQueryBuilder ( )
getTestQueryBuilder ( )
provideProjections ( boolean $include ) : array Provide arguments for select() and exclude() tests.

Method Details

provideCurrentDateOptions() public static method

public static provideCurrentDateOptions ( )

provideExcludeProjections() public method

providePoint() public method

public providePoint ( )

provideProxiedExprMethods() public method

provideSelectProjections() public method

provideSortOrders() public method

public provideSortOrders ( )

testAddElemMatch() public method

public testAddElemMatch ( )

testAddNot() public method

public testAddNot ( )

testBitAndUpdateQuery() public method

testBitOrUpdateQuery() public method

testBitXorUpdateQuery() public method

testComplexUpdateQuery() public method

testCurrentDateInvalidType() public method

testCurrentDateUpdateQuery() public method

public testCurrentDateUpdateQuery ( $type )

testDateRange() public method

public testDateRange ( )

testDeepClone() public method

public testDeepClone ( )

testDistanceMultipler() public method

testDistanceMultiplerRequiresGeoNearCommand() public method

testExclude() public method

public testExclude ( array $args, array $expected )
$args array
$expected array

testFinalizeShouldThrowExceptionForUnsupportedQueryType() public method

testFindQuery() public method

public testFindQuery ( )

testGeoNearWithBothArguments() public method

testGeoNearWithSingleArgument() public method

public testGeoNearWithSingleArgument ( $point, array $near, $spherical )
$near array

testIncUpdateQuery() public method

public testIncUpdateQuery ( )

testMapReduceOptionsRequiresMapReduceCommand() public method

testMapReduceQueryWithMultipleMethodsAndQueryArray() public method

testMapReduceQueryWithSingleMethod() public method

testMaxDistanceWithGeoNearCommand() public method

testMinDistanceWithGeoNearCommand() public method

testMultipleUpdateQuery() public method

testOutRequiresMapReduceCommand() public method

testProxiedExprMethods() public method

public testProxiedExprMethods ( $method, array $args = [] )
$args array

testQueryIsIterable() public method

public testQueryIsIterable ( )

testReduceShouldThrowExceptionForUnsupportedQueryType() public method

testSelect() public method

public testSelect ( array $args, array $expected )
$args array
$expected array

testSelectElemMatchWithArray() public method

testSelectElemMatchWithExpr() public method

testSelectMeta() public method

public testSelectMeta ( )

testSelectSliceWithCount() public method

testSelectSliceWithSkipAndLimit() public method

testSetOnInsert() public method

public testSetOnInsert ( )

testSetReadPreference() public method

testSortMetaDoesNotProjectExistingField() public method

testSortMetaDoesProjectMissingField() public method

testSortWithArrayOfFieldNameAndOrderPairs() public method

testSortWithFieldNameAndDefaultOrder() public method

testSortWithFieldNameAndOrder() public method

public testSortWithFieldNameAndOrder ( $order, $expectedOrder )

testSpherical() public method

public testSpherical ( )

testSphericalRequiresGeoNearCommand() public method

testThatAndAcceptsAnotherQuery() public method

testThatNorAcceptsAnotherQuery() public method

testThatOrAcceptsAnotherQuery() public method

testUnsetField() public method

public testUnsetField ( )

testUpsertUpdateQuery() public method