Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
more code
Browse files Browse the repository at this point in the history
  • Loading branch information
bupy7 committed Aug 26, 2016
1 parent 14903fd commit 7d34957
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/Asset/EmptyForm.php
@@ -0,0 +1,13 @@
<?php

namespace Bupy7\Form\Tests\Asset;

use Bupy7\Form\FormAbstract;

/**
* Empty form.
*/
class EmptyForm extends FormAbstract
{

}
11 changes: 11 additions & 0 deletions tests/FormAbstractTest.php
Expand Up @@ -5,6 +5,7 @@
use PHPUnit_Framework_TestCase;
use Bupy7\Form\Tests\Asset\SignInForm;
use Bupy7\Form\Tests\Asset\SignInFilter;
use Bupy7\Form\Tests\Asset\EmptyForm;

/**
* @author Vasilij Belosludcev <https://github.com/bupy7>
Expand Down Expand Up @@ -77,5 +78,15 @@ public function testInstanceInputFilter()
$signInForm->setValues([]);
$this->assertFalse($signInForm->isValid());
}

/**
* Testing empty inputs.
*/
public function testEmptyInputs()
{
$emptyForm = new EmptyForm;
$emptyForm->setValues([]);
$this->assertTrue($emptyForm->isValid());
}
}

0 comments on commit 7d34957

Please sign in to comment.