Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. There were 2 failures:
  2.  
  3. 1) PHPCR\Tests\Reading\NodeReadMethodsTest::testGetIdentifierNonReferenceable
  4. Failed asserting that null is of type "string".
  5.  
  6. /var/www/jackalope-mongodb/vendor/phpcr/phpcr-api-tests/tests/05_Reading/NodeReadMethodsTest.php:454
  7.  
  8. ____________________________________________________________________________________________________________
  9.  
  10. Method "testGetIdentifierNonReferenceable":
  11.  
  12. /**
  13. * The JCR specification is not saying what the properties of this id
  14. * should be. But it must be a string.
  15. */
  16. public function testGetIdentifierNonReferenceable()
  17. {
  18. $id = $this->node->getNode('index.txt')->getIdentifier();
  19. $this->assertInternalType('string', $id);
  20. }
  21. __________________________________________________________________________________________________________________
  22.  
  23. Method "getIdentifier()" class Node (namespace Jackalope) - must return string, but return null (not string)
  24.  
  25. public function getIdentifier()
  26. {
  27. $this->checkState();
  28.  
  29. if (isset($this->properties['jcr:uuid'])) {
  30. return $this->getPropertyValue('jcr:uuid');
  31. }
  32.  
  33. return null;
  34. //return 'null'; // No failrule (return string)
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement