コード例 #1
0
ファイル: ValidationsTest.php プロジェクト: melervand/indie
 public function setUp()
 {
     $post = json_decode(file_get_contents(__DIR__ . '/data.json'), true);
     $this->v = Indie::withLocalization('en_US');
     $this->v->import($post);
 }
コード例 #2
0
ファイル: IndieTest.php プロジェクト: melervand/indie
 public function testMultipleImport()
 {
     $this->v->import(["import" => "import"]);
     $this->v->key('import')->with(new Rule\Equals('import'));
     $this->assertTrue($this->v->isValid('import'));
 }