Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 7 |
JavaScriptTest | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
20 | |
0.00% |
0 / 7 |
setUp | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
tearDown | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
testDraw | |
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 4 |
<?php | |
namespace Test\Ease\Html; | |
/** | |
* Generated by PHPUnit_SkeletonGenerator on 2016-10-23 at 14:02:35. | |
*/ | |
class JavaScriptTest extends ScriptTagTest | |
{ | |
/** | |
* @var JavaScript | |
*/ | |
protected $object; | |
/** | |
* Sets up the fixture, for example, opens a network connection. | |
* This method is called before a test is executed. | |
*/ | |
protected function setUp() | |
{ | |
$this->object = new \Ease\Html\JavaScript('alert("hallo")'); | |
} | |
/** | |
* Tears down the fixture, for example, closes a network connection. | |
* This method is called after a test is executed. | |
*/ | |
protected function tearDown() | |
{ | |
} | |
/** | |
* @covers Ease\Html\JavaScript::draw | |
*/ | |
public function testDraw($whatWant = null) | |
{ | |
if (is_null($whatWant)) { | |
$whatWant = ' | |
<script type="text/javascript">// <![CDATA[ | |
alert("hallo") | |
// ]]></script>'; | |
} | |
parent::testDraw($whatWant); | |
} | |
} |