File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * Test GlHtmlNode
4+ *
5+ * PHP version 5.4
6+ *
7+ * @category GLICER
8+ * @package GlHtml\Tests
9+ * @author Emmanuel ROECKER
10+ * @author Rym BOUCHAGOUR
11+ * @copyright 2015 GLICER
12+ * @license MIT
13+ * @link http://dev.glicer.com/
14+ *
15+ * Created : 19/02/15
16+ * File : GlHtmlNodeTest.php
17+ *
18+ */
19+
20+ namespace GlHtml \Tests ;
21+
22+ use GlHtml \GlHtml ;
23+ use GlHtml \GlHtmlNode ;
24+ use GlHtml \GlHtmlSummary ;
25+
26+ /**
27+ * @covers \GlHtml\GlHtmlNode
28+ */
29+ class GlHtmlSummaryTest extends \PHPUnit_Framework_TestCase
30+ {
31+ public function testGetter () {
32+
33+ $ node = new GlHtmlNode (new \DOMNode ());
34+ $ summarynode = new GlHtmlSummary ($ node ,42 );
35+
36+ $ this ->assertEquals ($ node ,$ summarynode ->getNode ());
37+ $ this ->assertEquals (42 , $ summarynode ->getLevel ());
38+ }
39+ }
You can’t perform that action at this time.
0 commit comments