public function testOpen() { $open = Former::open('#'); $matcher = $this->createMatcher(); $this->assertEquals($matcher, $open); }
public function testOpenCustom() { $open = Former::open('#', 'GET', $this->testAttributes); $matcher = '<form class="foo form-horizontal" data-foo="bar" method="GET" action="#" accept-charset="UTF-8">'; $this->assertEquals($matcher, $open); }
public function testChainedFormParameters() { $open = Former::open()->method('GET')->id('form')->action('#')->addClass('foo')->__toString(); $matcher = '<form class="form-horizontal foo" id="form" method="GET" action="#" accept-charset="UTF-8">'; $this->assertEquals($matcher, $open); }