public function testTranslate()
 {
     $adapter = new GoogleAdapter();
     $result = $adapter->translate('text');
     $this->assertEquals('translate google', $result);
 }
Esempio n. 2
0
 public function translate($text)
 {
     $translate = $this->adapter->translate($text);
     return $translate;
 }