-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more tests added 23-September-2012:09-43
- Loading branch information
mparaiso
committed
Sep 23, 2012
1 parent
c9bba41
commit 973c42d
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |