<?php
use PHPUnit\Framework\TestCase;
/**
* @license MIT License https://github.com/serbanghita/Mobile-Detect/blob/master/LICENSE.txt
* @link http://mobiledetect.net
*/
class VendorsTest extends TestCase
{
protected $detect;
protected static $items;
public function setUp()
{
$this->detect = new Mobile_Detect;
}
public static function setUpBeforeClass()
{
//this method could be called multiple times
if (!self::$items) {
self::$items = include dirname(__FILE__).'/UA_List.inc.php';
}
}
public function testisMobileIsTablet()
{
foreach (self::$items as $brand => $deviceArr) {
foreach ($deviceArr as $userAgent => $conditions) {
if (!is_array($conditions)) {
continue;
}
$this->detect->setUserAgent($userAgent);
foreach ($conditions as $condition => $assert) {
// Currently not supporting version and model here.
// @todo: I need to split this tests!
if (in_array($condition, array('model'))) {
continue;
} // 'version',
switch ($condition) {
case 'version':
// Android, iOS, Chrome, Build, etc.
foreach ($assert as $assertKey => $assertValue) {
//if ($brand == 'Apple') {
// echo 'UA ('.$condition.'('.$assertKey.') === '.$assertValue.'): '.$userAgent . "\n";
//}
$this->assertSame( $this->detect->$condition( $assertKey ), $assertValue, 'UA ('.$condition.'('.$assertKey.') === '.$assertValue.'): '.$userAgent);
}
break;
default:
$this->assertSame($this->detect->$condition(), $assert, 'UA ('.$condition.'): '.$userAgent);
break;
}
}
}
}
}
public function testVersion()
{
foreach (self::$items as $brand => $deviceArr) {
foreach ($deviceArr as $userAgent => $conditions) {
if ( !is_array($conditions) || !isset($conditions['version']) ) { continue; }
$this->detect->setUserAgent($userAgent);
foreach ($conditions['version'] as $condition => $assertion) {
$this->assertEquals( $this->detect->version($condition), $assertion, 'UA (version("'.$condition.'")): '.$userAgent );
}
}
}
}
}
At NFC Pay, we strive to provide a seamless and satisfactory experience with our services. This Refund Policy outlines the circumstances under which refunds may be issued for transactions made through our platform. Please read this policy carefully to understand your rights regarding refunds.
1. Eligibility for Refunds
Refunds may be considered under the following circumstances:
2. Non-Refundable Situations
Refunds will generally not be issued in the following situations:
3. Refund Process
To request a refund, please follow these steps:
4. Refund Exceptions
Certain transactions may be subject to specific terms and conditions, including non-refundable fees or charges. Please review the terms associated with each transaction carefully, as some fees may not be eligible for refunds.
5. Modifications to the Refund Policy
NFC Pay reserves the right to modify this Refund Policy at any time. Changes will be communicated through updates on our website and app, and the effective date will be updated accordingly. We encourage you to review this policy periodically to stay informed about our refund practices.
By using NFC Pay, you agree to this Refund Policy and understand the terms under which refunds may be issued. Our goal is to ensure a fair and transparent refund process, providing you with confidence and peace of mind when using our services.