Skip to content

Commit 198ed6b

Browse files
committed
Easying Mehdi's life ;)
1 parent 1779c5e commit 198ed6b

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
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
}

tests/Stato/Webflow/files/forms/test_form_2.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
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
}

0 commit comments

Comments
 (0)