Skip to content

Commit

Permalink
bugfix Fatal error: Cannot use Koch\Form\Validators\String as String …
Browse files Browse the repository at this point in the history
…because 'String' is a special class name in
  • Loading branch information
jakoch committed Oct 28, 2015
1 parent 40b455c commit 7bae3a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -27,7 +27,7 @@

use Koch\Form\Validator;

class String extends Validator
class Text extends Validator
{
public function getValidationHint()
{
Expand Down
Expand Up @@ -2,9 +2,9 @@

namespace KochTest\Form\Validators;

use Koch\Form\Validators\String;
use Koch\Form\Validators\Text;

class StringTest extends \PHPUnit_Framework_TestCase
class TextTest extends \PHPUnit_Framework_TestCase
{
/**
* @var String
Expand All @@ -17,8 +17,8 @@ class StringTest extends \PHPUnit_Framework_TestCase
*/
public function setUp()
{
// Test Subject
$this->validator = new String;
// Subject Under Test
$this->validator = new Text;
}

/**
Expand Down

0 comments on commit 7bae3a6

Please sign in to comment.