FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
LinkElementTest.php
1
<?php
2
/*
3
Copyright (C) 2014, Siemens AG
4
Author: Andreas Würl
5
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License
8
version 2 as published by the Free Software Foundation.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License along
16
with this program; if not, write to the Free Software Foundation, Inc.,
17
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
*/
19
20
namespace
Fossology\Lib\Html
;
21
22
class
LinkElementTest
extends
\PHPUnit\Framework\TestCase
23
{
24
25
public
function
testLinkElement()
26
{
27
$linkElement =
new
LinkElement
(
"<url>"
);
28
29
assertThat($linkElement->getOpeningText(), is(
"<a href=\"<url>\">"
));
30
assertThat($linkElement->getClosingText(), is(
"</a>"
));
31
}
32
}
Fossology\Lib\Html
Definition:
HtmlElement.php:20
Fossology\Lib\Html\LinkElementTest
Definition:
LinkElementTest.php:22
Fossology\Lib\Html\LinkElement
Definition:
LinkElement.php:23
src
lib
php
Html
test
LinkElementTest.php
Generated on Mon Jun 29 2020 12:03:42 for FOSSology by
1.8.11