Example #1
0
 public function testCanSearchForAdjectivesFromText()
 {
     // setup
     // text is from Stuart Herbert's blog
     $textToScore = "Many old-skool developers choose to work largely from the command-line. You can happily run PHPUnit by hand from the command line yourself each time, but if you’re taking advantage of the extra data that PHPUnit can report back on, that soon gets to be a lot of typing! This is where the build.xml file in our skeleton comes in handy …";
     // do the test
     $client = new Client($this->_apiKey);
     $results = $client->callExtractAdjectivesFromText($textToScore);
     // evaluate the results
     $this->assertTrue(count($results) > 0);
 }