File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
tests/Stato/Webflow/files/forms Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- use Stato \Webflow \Forms as forms ;
4-
5- class TestForm1 extends forms \Form
3+ class TestForm1 extends \Stato \Webflow \Forms \Form
64{
75 public function __construct (array $ data = null , array $ files = null )
86 {
97 parent ::__construct ($ data , $ files );
10- $ this ->lib = new forms \CharField ;
8+ $ this ->lib = new \ Stato \ Webflow \ Forms \CharField ;
119 }
1210
1311 protected function clean ()
1412 {
1513 if ($ this ->cleanedData ['lib ' ] != 'foo ' )
16- throw new forms \ValidationError ('Lib should be "foo" ' );
14+ throw new \ Stato \ Webflow \ Forms \ValidationError ('Lib should be "foo" ' );
1715 }
1816}
Original file line number Diff line number Diff line change 11<?php
22
3- use Stato \Webflow \Forms as forms ;
4-
5- class TestForm2 extends forms \Form
3+ class TestForm2 extends \Stato \Webflow \Forms \Form
64{
75 public function __construct (array $ data = null , array $ files = null )
86 {
97 parent ::__construct ($ data , $ files );
10- $ this ->lib = new forms \CharField ;
8+ $ this ->lib = new \ Stato \ Webflow \ Forms \CharField ;
119 }
1210
1311 protected function cleanLib ($ value )
1412 {
1513 if ($ value != 'foo ' )
16- throw new forms \ValidationError ('Lib should be "foo" ' );
14+ throw new \ Stato \ Webflow \ Forms \ValidationError ('Lib should be "foo" ' );
1715
1816 return $ value ;
1917 }
You can’t perform that action at this time.
0 commit comments