Skip to content

Commit

Permalink
more tests added 23-September-2012:09-43
Browse files Browse the repository at this point in the history
  • Loading branch information
mparaiso committed Sep 23, 2012
1 parent c9bba41 commit 973c42d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions tests/app/Form/Validation/ValidationTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php
namespace App\Model\Form\Validation{

/**
* simple tests on symfony validation component
*/
class ValidationTest extends \PHPUnit_Framework_TestCase{
/**
* Silex\Application
*/
protected $app;
public function setUp(){
if(defined("ROOT")):
$this->app = require ROOT.'/App/config.php';
else:
throw new Exception("ROOT is not defined", 1);
endif;
}

function testNew(){

}

function tearDown(){
}
}

use Symfony\Component\Validator\Constraints as Assert;

class Author{
/**
* @Assert\NotBlank()
*/
public $name;
}
}

0 comments on commit 973c42d

Please sign in to comment.