forked from ffwagency/borgerdk-php
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBasicTest.php
More file actions
91 lines (77 loc) · 1.91 KB
/
BasicTest.php
File metadata and controls
91 lines (77 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
/*
* This file is part of the borgerdk-php SDK.
*
* (c) Jens Beltofte <jens.beltofte@ffwagency.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace BorgerDk\ArticleService\UnitTests;
use PHPUnit\Framework\TestCase as UnitTestCase;
use BorgerDk\ArticleService;
use BorgerDk\ArticleService\Client as Client;
/**
* Class BasicTest
*
* @package BorgerDk\ArticleService
*/
abstract class BasicTest extends UnitTestCase
{
/**
* Client Connection
*
* @var BorgerDk\ArticleService\Client
*/
protected $client;
/**
* @var integer
*/
protected $municipalityCount;
/**
* @var integer
*/
protected $municipalityCode;
/**
* @var integer
*/
protected $articleId1;
/**
* @var integer
*/
protected $articleId2;
/**
* @var string
*/
protected $articleUrl;
/**
* @var integer
*/
protected $articleUrlId;
/**
* @var integer
*/
protected $siteId;
/**
* {@inheritdoc}
*/
public function __construct($name = null, array $data = array(), $dataName = '')
{
$this->municipalityCount = (int) getenv('MUNICIPALITY_COUNT');
$this->municipalityCode = (int) getenv('MUNICIPALITY_CODE');
$this->articleId1 = (int) getenv('ARTICLE_ID1');
$this->articleId2 = (int) getenv('ARTICLE_ID2');
$this->articleUrl = getenv('ARTICLE_URL');
$this->articleUrlId = (int) getenv('ARTICLE_URL_ID');
$this->siteId = (int) getenv('SITE_ID');
parent::__construct($name, $data, $dataName);
}
/**
* Initiate the new Soap Client in the setup method.
*/
protected function setUp(): void
{
parent::setUp();
$this->client = new Client();
}
}