Skip to content
Permalink
Browse files

Use StringTemplate constructor in test cases.

  • Loading branch information...
markstory committed Jan 15, 2014
1 parent 3489cd2 commit ff9de4e6572d945816f97b41b00623ef7adddbc3
@@ -33,8 +33,7 @@ public function setUp() {
$templates = [
'checkbox' => '<input type="checkbox" name="{{name}}" value="{{value}}"{{attrs}}>',
];
$this->templates = new StringTemplate();
$this->templates->add($templates);
$this->templates = new StringTemplate($templates);
}
/**
@@ -35,8 +35,7 @@ public function setUp() {
'label' => '<label{{attrs}}>{{text}}</label>',
'checkboxContainer' => '<div class="checkbox">{{input}}{{label}}</div>',
];
$this->templates = new StringTemplate();
$this->templates->add($templates);
$this->templates = new StringTemplate($templates);
}
/**
@@ -36,8 +36,7 @@ public function setUp() {
'label' => '<label{{attrs}}>{{text}}</label>',
'radioContainer' => '{{input}}{{label}}',
];
$this->templates = new StringTemplate();
$this->templates->add($templates);
$this->templates = new StringTemplate($templates);
}
/**
@@ -36,8 +36,7 @@ public function setUp() {
'option' => '<option value="{{value}}"{{attrs}}>{{text}}</option>',
'optgroup' => '<optgroup label="{{label}}"{{attrs}}>{{content}}</optgroup>',
];
$this->templates = new StringTemplate();
$this->templates->add($templates);
$this->templates = new StringTemplate($templates);
}
/**
@@ -28,8 +28,7 @@ public function setUp() {
$templates = [
'input' => '<input type="{{type}}" name="{{name}}"{{attrs}}>',
];
$this->templates = new StringTemplate();
$this->templates->add($templates);
$this->templates = new StringTemplate($templates);
}
/**

0 comments on commit ff9de4e

Please sign in to comment.
You can’t perform that action at this time.