public function testLabelName() { $controlScript = new ControlScript(); $this->assertEquals(ScriptLabel::MOUSECLICK, $controlScript->getLabelName()); $this->assertSame($controlScript, $controlScript->setLabelName("some-label")); $this->assertEquals("some-label", $controlScript->getLabelName()); }
/** * @see ScriptFeature::prepare() */ public function prepare(Script $script) { $script->setScriptInclude(ScriptInclude::TEXTLIB); $controlScript = new ControlScript($this->entry, $this->getScriptText(), ScriptLabel::ENTRYSUBMIT); $controlScript->prepare($script); return $this; }