예제 #1
0
 public function testTextLabelWithoutBootstrap()
 {
     Former::useBootstrap(false);
     $static = Former::text('foo')->label('bar')->__toString();
     $input = Former::text('foo', 'bar')->__toString();
     $matcher = '<label for="foo">Bar</label><input type="text" name="foo" id="foo">';
     $this->assertEquals($matcher, $input);
     $this->assertEquals($matcher, $static);
 }