* * 3. Neither the name of the copyright holder nor the names of its contributors * may be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * @author Nosto Solutions Ltd <*****@*****.**> * @copyright 2016 Nosto Solutions Ltd * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause * */ // This is global bootstrap for autoloading date_default_timezone_set('Europe/Helsinki'); // Pre-load all sdk classes. require_once dirname(__FILE__) . '/../src/config.inc.php'; // Configure API, Web Hooks, and OAuth client to use Mock server when testing. NostoApiRequest::$baseUrl = 'http://localhost:3000'; NostoOAuthClient::$baseUrl = 'http://localhost:3000'; NostoHttpRequest::$baseUrl = 'http://localhost:3000'; NostoHttpRequest::buildUserAgent('PHPUnit', '1.0.0', '1.0.0');
/** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magentocommerce.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. * * @category Nosto * @package Nosto_Tagging * @author Nosto Solutions Ltd <*****@*****.**> * @copyright Copyright (c) 2013-2016 Nosto Solutions Ltd (http://www.nosto.com) * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) */ /** @noinspection PhpIncludeInspection */ require_once Mage::getBaseDir('lib') . '/nosto/php-sdk/src/config.inc.php'; $version = (string) Mage::getConfig()->getNode('modules/Nosto_Tagging/version'); NostoHttpRequest::buildUserAgent('Magento', Mage::getVersion(), $version);