PHP Class TextStatisticsKiplingIf

Inheritance: extends PHPUnit_Framework_TestCase
Mostrar archivo Open project: nystudio107/seomatic

Protected Properties

Property Type Description
$TextStatistics Manually Calculated Scores -------------------------------------------------------- Flesch-Kincaid Reading Ease (206.835 - (1.015 * (word_count / sentence_count)) - (84.6 * (syllableCount / word_count))) = -187.47239726027397260273972602738 Flesch-Kincaid Grade Level ((0.39 * (word_count / sentence_count)) + (11.8 * (syllableCount / word_count)) - 15.59) = 111.9489041095890410958904109589 Gunning-Fog Score (((word_count / sentence_count) + (100 * (long_word_count / word_count ))) * 0.4) = 117.48493150684931506849315068493 Coleman-Liau Index ((5.89 * (letter_count / word_count)) - (0.3 * (sentence_count / word_count)) - 15.8) = 6.8916095890410958904109589041096 SMOG Index (1.043 * sqrt((long_word_count * (30 / sentence_count)) + 3.1291)) = 14.114418454399741934838352157075 Automated Readability Index ((4.71 * (letter_count / word_count)) + (0.5 * (word_count / sentence_count)) - 21.43) = 142.7164041095890410958904109589
$strText

Public Methods

Method Description
setUp ( )
tearDown ( )
testAutomatedReadabilityIndex ( ) * Test Automated Readability Index --------------------
testColemanLiauIndex ( ) * Test Coleman Liau Index --------------------
testFleschKincaidGradeLevel ( ) * Test Flesch Kincaid Grade Level --------------------
testFleschKincaidReadingEase ( ) * Test Flesch Kincaid Reading Ease --------------------
testGunningFogScore ( ) * Test Gunning Fog Score --------------------
testKiplingSyllables ( ) * Test Syllables --------------------
testLetterCount ( ) * Test Total Letters --------------------
testSMOGIndex ( ) * Test SMOG Index --------------------
testSentenceCount ( ) * Test Sentences --------------------
testSyllableCount ( ) * Test Total Syllables --------------------
testTextLengthCheck ( ) * Test Letter Count --------------------
testWordCount ( ) * Test Words --------------------

Method Details

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testAutomatedReadabilityIndex() public method

* Test Automated Readability Index --------------------

testColemanLiauIndex() public method

* Test Coleman Liau Index --------------------

testFleschKincaidGradeLevel() public method

* Test Flesch Kincaid Grade Level --------------------

testFleschKincaidReadingEase() public method

* Test Flesch Kincaid Reading Ease --------------------

testGunningFogScore() public method

* Test Gunning Fog Score --------------------
public testGunningFogScore ( )

testKiplingSyllables() public method

* Test Syllables --------------------

testLetterCount() public method

* Test Total Letters --------------------
public testLetterCount ( )

testSMOGIndex() public method

* Test SMOG Index --------------------
public testSMOGIndex ( )

testSentenceCount() public method

* Test Sentences --------------------
public testSentenceCount ( )

testSyllableCount() public method

* Test Total Syllables --------------------
public testSyllableCount ( )

testTextLengthCheck() public method

* Test Letter Count --------------------
public testTextLengthCheck ( )

testWordCount() public method

* Test Words --------------------
public testWordCount ( )

Property Details

$TextStatistics protected_oe property

Manually Calculated Scores -------------------------------------------------------- Flesch-Kincaid Reading Ease (206.835 - (1.015 * (word_count / sentence_count)) - (84.6 * (syllableCount / word_count))) = -187.47239726027397260273972602738 Flesch-Kincaid Grade Level ((0.39 * (word_count / sentence_count)) + (11.8 * (syllableCount / word_count)) - 15.59) = 111.9489041095890410958904109589 Gunning-Fog Score (((word_count / sentence_count) + (100 * (long_word_count / word_count ))) * 0.4) = 117.48493150684931506849315068493 Coleman-Liau Index ((5.89 * (letter_count / word_count)) - (0.3 * (sentence_count / word_count)) - 15.8) = 6.8916095890410958904109589041096 SMOG Index (1.043 * sqrt((long_word_count * (30 / sentence_count)) + 3.1291)) = 14.114418454399741934838352157075 Automated Readability Index ((4.71 * (letter_count / word_count)) + (0.5 * (word_count / sentence_count)) - 21.43) = 142.7164041095890410958904109589
protected $TextStatistics

$strText protected_oe property

protected $strText