Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function testTones() |
||
11 | { |
||
12 | $response = $this->getMockResponse('ToneResponse.json'); |
||
13 | $data = json_decode($response->getBody(), true); |
||
14 | |||
15 | $document = $data['document_tone']; |
||
16 | $document['warning'] = 'Content contains more than 50 utterances'; |
||
17 | |||
18 | $analysis = DocumentAnalysis::create($document); |
||
19 | |||
20 | $this->assertNotEmpty($analysis->getTones()); |
||
21 | $this->assertSame('Content contains more than 50 utterances', $analysis->getWarning()); |
||
22 | } |
||
23 | } |
||
24 |