Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- There were 2 failures:
- 1) PHPCR\Tests\Reading\NodeReadMethodsTest::testGetIdentifierNonReferenceable
- Failed asserting that null is of type "string".
- /var/www/jackalope-mongodb/vendor/phpcr/phpcr-api-tests/tests/05_Reading/NodeReadMethodsTest.php:454
- ____________________________________________________________________________________________________________
- Method "testGetIdentifierNonReferenceable":
- /**
- * The JCR specification is not saying what the properties of this id
- * should be. But it must be a string.
- */
- public function testGetIdentifierNonReferenceable()
- {
- $id = $this->node->getNode('index.txt')->getIdentifier();
- $this->assertInternalType('string', $id);
- }
- __________________________________________________________________________________________________________________
- Method "getIdentifier()" class Node (namespace Jackalope) - must return string, but return null (not string)
- public function getIdentifier()
- {
- $this->checkState();
- if (isset($this->properties['jcr:uuid'])) {
- return $this->getPropertyValue('jcr:uuid');
- }
- return null;
- //return 'null'; // No failrule (return string)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement