Skip to content

Commit 1563098

Browse files
authored
Merge pull request #203 from phpcr/cleanup-valueconverter
names and paths can contain spaces
2 parents 5d65251 + 88629e2 commit 1563098

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/PHPCR/Tests/Util/ValueConverterTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ public function dataConversionMatrix()
7474
['test string', PropertyType::STRING, true, PropertyType::BOOLEAN],
7575
['false', PropertyType::STRING, true, PropertyType::BOOLEAN],
7676
['', PropertyType::STRING, false, PropertyType::BOOLEAN],
77-
// TODO: check NAME may not have spaces ['test string', PropertyType::STRING, null, PropertyType::NAME],
7877
['test', PropertyType::STRING, 'test', PropertyType::NAME],
79-
// TODO: check PATH may not have spaces ['test string', PropertyType::STRING, null, PropertyType::PATH],
78+
['test space', PropertyType::STRING, 'test space', PropertyType::NAME],
8079
['../the/node', PropertyType::STRING, '../the/node', PropertyType::PATH],
80+
['../the space/node', PropertyType::STRING, '../the space/node', PropertyType::PATH],
8181
['38b7cf18-c417-477a-af0b-c1e92a290c9a', PropertyType::STRING, '38b7cf18-c417-477a-af0b-c1e92a290c9a', PropertyType::REFERENCE],
8282
// TODO: should we move UUIDHelper to phpcr so we can check in PropertyType? ['test string', PropertyType::STRING, null, PropertyType::REFERENCE],
8383
['', PropertyType::STRING, null, PropertyType::REFERENCE],
@@ -93,9 +93,7 @@ public function dataConversionMatrix()
9393
[$stream, PropertyType::BINARY, null, PropertyType::DATE],
9494
[$dateStream, PropertyType::BINARY, new DateTime('17.12.2010 GMT'), PropertyType::DATE],
9595
[$stream, PropertyType::BINARY, true, PropertyType::BOOLEAN],
96-
// TODO: check NAME may not have spaces [$stream, PropertyType::BINARY, null, PropertyType::NAME],
9796
[$nameStream, PropertyType::BINARY, 'test', PropertyType::NAME],
98-
// TODO: check PATH may not have spaces [$stream, PropertyType::BINARY, null, PropertyType::PATH],
9997
// TODO: should we move UUIDHelper to phpcr so we can check in PropertyType? [$stream, PropertyType::STRING, null, PropertyType::REFERENCE],
10098
[$uuidStream, PropertyType::BINARY, '38b7cf18-c417-477a-af0b-c1e92a290c9a', PropertyType::REFERENCE],
10199
[$stream, PropertyType::BINARY, 'test string', PropertyType::DECIMAL], // up to the decimal functions to validate

0 commit comments

Comments
 (0)