public function testConfigIsJson() { $query = YahooFinanceQuery::make(); $array = array('returnType' => 'json'); $query->config($array); $config = $query->getConfig(); $this->assertTrue($config['returnType'] == 'json'); }
* @copyright 2013-2015 Dirk Olbrich * @link https://github.com/dirkolbrich/YahooFinanceQuery * @license MIT * @version 1.0.0 * @package YahooFinanceQuery */ --> <html> <head> <title>YahooFinanceQuery Example</title> </head> <body> <?php require './src/YahooFinanceQuery.php'; use DirkOlbrich\YahooFinanceQuery\YahooFinanceQuery; $query = new YahooFinanceQuery(); ?> <h2>YahooFinanceQuery Example</h2> <hr /> <!-- symbolSuggest($string); --> <div> <h4>function symbolSuggest($string);</h4> <p>Search for "basf"</p> <form method="post" action=""> <input type="text" name="string" value="basf" placeholder="basf"/> <input type="submit" name="searchSymbol" value="Search" /> </form> <?php