\Apache_Solr_DocumentTest
Apache_Solr_Document Unit Test
Synopsis
class Apache_Solr_DocumentTest
extends PHPUnit_Framework_TestCase
{
- // members
- private Apache_Solr_Document $_fixture;
- // methods
- protected void setup()
- protected void tearDown()
- public void testDefaultStateAfterConstructor()
- public void testSetAndGetField()
- public void testGetFieldReturnsFalseForNonExistentField()
- public void testMagicGetForFieldValues()
- public void testMagicGetReturnsNullForNonExistentField()
- public void testMagicSetForFieldValues()
- public void testMagicIssetForNonExistentField()
- public void testMagicIssetForExistingField()
- public void testMagicUnsetForExistingField()
- public void testMagicUnsetForNonExistingField()
- public void testSetAndGetFieldBoostWithPositiveNumberSetsBoost()
- public void testSetAndGetFieldBoostWithZeroRemovesBoost()
- public void testSetAndGetFieldBoostWithNegativeNumberRemovesBoost()
- public void testSetAndGetFieldBoostWithNonNumberRemovesBoost()
- public void testSetAndGetBoostWithPositiveNumberSetsBoost()
- public void testSetAndGetBoostWithZeroRemovesBoost()
- public void testSetAndGetBoostWithNegativeNumberRemovesBoost()
- public void testSetAndGetBoostWithNonNumberRemovesBoost()
- public void testAddFieldCreatesMultiValueWhenFieldDoesNotExist()
- public void testSetMultiValueCreateMultiValueWhenFieldDoesNotExist()
- public void testAddFieldCreatesMultiValueWhenFieldDoesExistAsSingleValue()
- public void testSetMultiValueCreatesMultiValueWhenFieldDoesExistAsSingleValue()
- public void testAddFieldWithBoostSetsFieldBoost()
- public void testAddFieldWithBoostMultipliesWithAPreexistingBoost()
- public void testGetFieldNamesIsInitiallyEmpty()
- public void testGetFieldNamesAfterFieldIsSetIsNotEmpty()
- public void testGetFieldValuesIsInitiallyEmpty()
- public void testGetFieldValuessAfterFieldIsSetIsNotEmpty()
- public void testGetIteratorAfterFieldValueIsSet()
- public void testClearReturnsDocumentToDefaultState()
Hierarchy
Extends
- PHPUnit_Framework_TestCase
Members
private
- $_fixture
—
Apache_Solr_Document
Fixture used for testing
Methods
protected
- setup() — Setup for the fixture before each unit test - part of test case API
- tearDown() — Teardown after each unit test - part of test case API
public
- testAddFieldCreatesMultiValueWhenFieldDoesExistAsSingleValue()
- testAddFieldCreatesMultiValueWhenFieldDoesNotExist()
- testAddFieldWithBoostMultipliesWithAPreexistingBoost()
- testAddFieldWithBoostSetsFieldBoost()
- testClearReturnsDocumentToDefaultState()
- testDefaultStateAfterConstructor()
- testGetFieldNamesAfterFieldIsSetIsNotEmpty()
- testGetFieldNamesIsInitiallyEmpty()
- testGetFieldReturnsFalseForNonExistentField()
- testGetFieldValuesIsInitiallyEmpty()
- testGetFieldValuessAfterFieldIsSetIsNotEmpty()
- testGetIteratorAfterFieldValueIsSet()
- testMagicGetForFieldValues()
- testMagicGetReturnsNullForNonExistentField() — Added for issue #48 (http://code.google.com/p/solr-php-client/issues/detail?id=48)
- testMagicIssetForExistingField()
- testMagicIssetForNonExistentField()
- testMagicSetForFieldValues()
- testMagicUnsetForExistingField()
- testMagicUnsetForNonExistingField()
- testSetAndGetBoostWithNegativeNumberRemovesBoost()
- testSetAndGetBoostWithNonNumberRemovesBoost()
- testSetAndGetBoostWithPositiveNumberSetsBoost()
- testSetAndGetBoostWithZeroRemovesBoost()
- testSetAndGetField()
- testSetAndGetFieldBoostWithNegativeNumberRemovesBoost()
- testSetAndGetFieldBoostWithNonNumberRemovesBoost()
- testSetAndGetFieldBoostWithPositiveNumberSetsBoost()
- testSetAndGetFieldBoostWithZeroRemovesBoost()
- testSetMultiValueCreateMultiValueWhenFieldDoesNotExist() — setMultiValue has been deprecated and defers to addField
- testSetMultiValueCreatesMultiValueWhenFieldDoesExistAsSingleValue() — setMultiValue has been deprecated and defers to addField