Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit 220411a

Browse files
test tune for php56
1 parent a886d9f commit 220411a

14 files changed

+36
-27
lines changed

tests/BcardTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
class BcardTest extends TestCase
66
{
7-
private $_file = __DIR__ . '/../extra/tmp.txt';
7+
private $_file;
88
private $_bcards;
99
private $_bcard;
1010

1111
public function __construct($name = null, array $data = [], $dataName = '')
1212
{
1313
parent::__construct($name, $data, $dataName);
1414
include __DIR__ . "/../extra/config.php";
15-
15+
$this->_file = __DIR__ . '/../extra/tmp.txt';
1616
$this->_bcards = new \UON\Bcard();
1717
$this->_bcard = [
1818
'bc_number' => '0000000001',

tests/CatalogTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44

55
class CatalogTest extends TestCase
66
{
7-
private $_file = __DIR__ . '/../extra/tmp.txt';
7+
private $_file;
88
private $_catalog;
99
private $_services;
1010

1111
public function __construct($name = null, array $data = [], $dataName = '')
1212
{
1313
parent::__construct($name, $data, $dataName);
1414
include __DIR__ . "/../extra/config.php";
15+
$this->_file = __DIR__ . '/../extra/tmp.txt';
1516
$this->_catalog = new Catalog();
1617
$this->_services = new Services();
1718
}

tests/ChatTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44

55
class ChatTest extends TestCase
66
{
7+
private $_file;
78
private $_chats;
89
private $_chat;
910

1011
public function __construct($name = null, array $data = [], $dataName = '')
1112
{
1213
parent::__construct($name, $data, $dataName);
1314
include __DIR__ . "/../extra/config.php";
14-
15+
$this->_file = __DIR__ . '/../extra/tmp.txt';
1516
$this->_chats = new \UON\Chat();
1617
$this->_chat = array(
1718
'user_id_from' => '1',

tests/CitiesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
class CitiesTest extends TestCase
66
{
7-
private $_file = __DIR__ . '/../extra/tmp.txt';
7+
private $_file;
88
private $_cities;
99
private $_city;
1010

1111
public function __construct($name = null, array $data = [], $dataName = '')
1212
{
1313
parent::__construct($name, $data, $dataName);
1414
include __DIR__ . "/../extra/config.php";
15-
15+
$this->_file = __DIR__ . '/../extra/tmp.txt';
1616
$this->_cities = new \UON\Cities();
1717
$this->_city = array(
1818
'country_id' => '1',

tests/CountriesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
class CountriesTest extends TestCase
55
{
6-
private $_file = __DIR__ . '/../extra/tmp.txt';
6+
private $_file;
77
private $_countries;
88
private $_country;
99

1010
public function __construct($name = null, array $data = [], $dataName = '')
1111
{
1212
parent::__construct($name, $data, $dataName);
1313
include __DIR__ . "/../extra/config.php";
14-
14+
$this->_file = __DIR__ . '/../extra/tmp.txt';
1515
$this->_countries = new \UON\Countries();
1616
$this->_country = [
1717
'name' => 'Кингконгстоунт',

tests/HotelsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
class HotelsTest extends TestCase
55
{
6-
private $_file = __DIR__ . '/../extra/tmp.txt';
6+
private $_file;
77
private $_hotels;
88
private $_hotel;
99

1010
public function __construct($name = null, array $data = [], $dataName = '')
1111
{
1212
parent::__construct($name, $data, $dataName);
1313
include __DIR__ . "/../extra/config.php";
14-
14+
$this->_file = __DIR__ . '/../extra/tmp.txt';
1515
$this->_hotels = new \UON\Hotels();
1616
$this->_hotel = [
1717
'name' => 'Кингконгстоунт',

tests/LeadsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
class LeadsTest extends TestCase
55
{
6-
private $_file = __DIR__ . '/../extra/tmp.txt';
6+
private $_file;
77
private $_leads;
88
private $_lead;
99

1010
public function __construct($name = null, array $data = [], $dataName = '')
1111
{
1212
parent::__construct($name, $data, $dataName);
1313
include __DIR__ . "/../extra/config.php";
14-
14+
$this->_file = __DIR__ . '/../extra/tmp.txt';
1515
$this->_leads = new \UON\Leads();
1616
$this->_lead = [
1717
'note' => 'Test lead',

tests/NutritionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
class NutritionTest extends TestCase
55
{
6-
private $_file = __DIR__ . '/../extra/tmp.txt';
6+
private $_file;
77
private $_nutritions;
88
private $_nutrition;
99

1010
public function __construct($name = null, array $data = [], $dataName = '')
1111
{
1212
parent::__construct($name, $data, $dataName);
1313
include __DIR__ . "/../extra/config.php";
14-
14+
$this->_file = __DIR__ . '/../extra/tmp.txt';
1515
$this->_nutritions = new \UON\Nutrition();
1616
$this->_nutrition = array(
1717
'name' => 'Хавчик',

tests/PaymentsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
class PaymentsTest extends TestCase
55
{
6-
private $_file = __DIR__ . '/../extra/tmp.txt';
6+
private $_file;
77
private $_payments;
88
private $_payment;
99

1010
public function __construct($name = null, array $data = [], $dataName = '')
1111
{
1212
parent::__construct($name, $data, $dataName);
1313
include __DIR__ . "/../extra/config.php";
14-
14+
$this->_file = __DIR__ . '/../extra/tmp.txt';
1515
$this->_payments = new \UON\Payments();
1616
$this->_payment = array(
1717
'r_id' => '1',

tests/RemindersTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
class RemindersTest extends TestCase
55
{
6-
private $_file = __DIR__ . '/../extra/tmp.txt';
6+
private $_file;
77
private $_reminders;
88
private $_reminder;
99

1010
public function __construct($name = null, array $data = [], $dataName = '')
1111
{
1212
parent::__construct($name, $data, $dataName);
1313
include __DIR__ . "/../extra/config.php";
14-
14+
$this->_file = __DIR__ . '/../extra/tmp.txt';
1515
$this->_reminders = new \UON\Reminders();
1616
$this->_reminder = array(
1717
'r_id' => '1',

0 commit comments

Comments
 (0)