/** * * * @param boolean $enabled optional boolean * @return $this * @static */ public static function setMorphoFlag($enabled = true) { return \Yandex\Dictionary\DictionaryClient::setMorphoFlag($enabled); }
/** * @param $flag * @param $expectedFlag * * @dataProvider dataSetGetFlag */ public function testSetGetMorphoFlag($flag, $expectedFlag) { $dictionaryClient = new DictionaryClient(''); $this->assertEmpty($dictionaryClient->getFlags()); $dictionaryClient->setMorphoFlag($flag); $this->assertEquals($expectedFlag, $dictionaryClient->getFlags()); }