-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
322 additions
and
239 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
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
2 changes: 1 addition & 1 deletion
2
...alope/Validation/InvalidPathException.php → ...dation/Exception/InvalidPathException.php
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Jackalope\Validation; | ||
namespace Jackalope\Validation\Exception; | ||
|
||
use PHPCR\ValueFormatException; | ||
|
||
|
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
4 changes: 2 additions & 2 deletions
4
...pe/Validation/JackrabbitPathValidator.php → ...lidation/Path/JackrabbitPathValidator.php
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
2 changes: 1 addition & 1 deletion
2
...kalope/Validation/SimplePathValidator.php → ...e/Validation/Path/SimplePathValidator.php
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Jackalope\Validation; | ||
namespace Jackalope\Validation\Path; | ||
|
||
use DOMElement; | ||
|
||
|
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
111 changes: 0 additions & 111 deletions
111
tests/Jackalope/Validation/JackrabbitPathValidatorTest.php
This file was deleted.
Oops, something went wrong.
66 changes: 66 additions & 0 deletions
66
tests/Jackalope/Validation/Path/JackrabbitPathValidatorTest.php
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,66 @@ | ||
<?php | ||
|
||
namespace Jackalope\NodeType\Path; | ||
|
||
use Jackalope\NodeType\NodeProcessor; | ||
use Jackalope\TestCase; | ||
use PHPCR\PropertyType; | ||
use Jackalope\Validation\PathValidatorTestCase; | ||
use Jackalope\Validation\Path\JackrabbitPathValidator; | ||
|
||
class JackrabbitPathValidatorTest extends PathValidatorTestCase | ||
{ | ||
public function getValidator() | ||
{ | ||
return new JackrabbitPathValidator(); | ||
} | ||
|
||
public function getPathAnswers() | ||
{ | ||
return array( | ||
'absolute_1' => true, | ||
'absolute_2' => false, | ||
'absolute_3' => false, | ||
'normal_1' => true, | ||
'normal_2' => true, | ||
'normal_3' => true, | ||
'normal_4' => true, | ||
'normal_5' => true, | ||
'normal_6' => true, | ||
'normal_7' => true, | ||
'normal_8' => true, | ||
'normal_9' => true, | ||
'normal_10' => false, | ||
'normal_11' => false, | ||
'normal_12' => false, | ||
'normal_13' => false, | ||
'normal_14' => false, | ||
); | ||
} | ||
|
||
public function getNameAnswers() | ||
{ | ||
return array( | ||
'normal_1' => false, | ||
'normal_2' => false, | ||
'normal_3' => true, | ||
'normal_4' => true, | ||
'normal_5' => false, | ||
'normal_6' => true, | ||
'namespace_1' => true, | ||
'namespace_2' => true, | ||
'namespace_3' => true, | ||
'namespace_4' => true, | ||
'namespace_5' => false, | ||
'namespace_6' => false, | ||
'namespace_7' => false, | ||
'namespace_8' => false, | ||
'namespace_9' => false, | ||
'localname_1' => true, | ||
'localname_2' => true, | ||
'localname_3' => true, | ||
'localname_4' => true, | ||
'localname_5' => true, | ||
); | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
tests/Jackalope/Validation/Path/SimplePathValidatorTest.php
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,66 @@ | ||
<?php | ||
|
||
namespace Jackalope\NodeType; | ||
|
||
use Jackalope\NodeType\NodeProcessor; | ||
use Jackalope\TestCase; | ||
use PHPCR\PropertyType; | ||
use Jackalope\Validation\PathValidatorTestCase; | ||
use Jackalope\Validation\Path\SimplePathValidator; | ||
|
||
class SimplePathValidatorTest extends PathValidatorTestCase | ||
{ | ||
public function getValidator() | ||
{ | ||
return new SimplePathValidator(); | ||
} | ||
|
||
public function getPathAnswers() | ||
{ | ||
return array( | ||
'absolute_1' => true, | ||
'absolute_2' => false, | ||
'absolute_3' => false, | ||
'normal_1' => true, | ||
'normal_2' => false, | ||
'normal_3' => false, | ||
'normal_4' => false, | ||
'normal_5' => false, | ||
'normal_6' => false, | ||
'normal_7' => true, | ||
'normal_8' => true, | ||
'normal_9' => false, | ||
'normal_10' => false, | ||
'normal_11' => false, | ||
'normal_12' => false, | ||
'normal_13' => false, | ||
'normal_14' => false, | ||
); | ||
} | ||
|
||
public function getNameAnswers() | ||
{ | ||
return array( | ||
'normal_1' => false, | ||
'normal_2' => false, | ||
'normal_3' => true, | ||
'normal_4' => false, | ||
'normal_5' => false, | ||
'normal_6' => true, | ||
'namespace_1' => false, | ||
'namespace_2' => false, | ||
'namespace_3' => false, | ||
'namespace_4' => false, | ||
'namespace_5' => false, | ||
'namespace_6' => false, | ||
'namespace_7' => false, | ||
'namespace_8' => false, | ||
'namespace_9' => false, | ||
'localname_1' => false, | ||
'localname_2' => false, | ||
'localname_3' => false, | ||
'localname_4' => false, | ||
'localname_5' => false, | ||
); | ||
} | ||
} |
Oops, something went wrong.