Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.34 KB | None | 0 0
  1. Expectation failed for method name is equal to <string:insert> when invoked 1 time(s)
  2. Parameter 0 for invocation OCP\AppFramework\Db\Mapper::insert(OCA\MediaMetadata\Services\ImageDimension Object (...)) does not match expected value.
  3. OCA\MediaMetadata\Services\ImageDimension Object &000000007b8d937a000000005f3b48ba (
  4. 'imageId' => 260495
  5. 'imageHeight' => null
  6. 'imageWidth' => null
  7. 'id' => null
  8. '_updatedFields' => Array &0 (
  9. 'imageId' => true
  10. )
  11. '_fieldTypes' => Array &0
  12. ) is not instance of expected class "Mock_ImageDimension_8fbc9b7e".--- Expected
  13. +++ Actual
  14. @@ @@
  15. -Mock_ImageDimension_8fbc9b7e Object &000000007b8d9394000000005f3b48ba (
  16. - '__phpunit_invocationMocker' => PHPUnit_Framework_MockObject_InvocationMocker Object &000000007b8d93b8000000005f3b48ba (
  17. - 'matchers' => Array &0 (
  18. - 0 => PHPUnit_Framework_MockObject_Matcher Object &000000007b8d93be000000005f3b48ba (
  19. - 'invocationMatcher' => PHPUnit_Framework_MockObject_Matcher_InvokedCount Object &000000007b8d93bb000000005f3b48ba (
  20. - 'expectedCount' => 1
  21. - 'invocations' => Array &1 ()
  22. - )
  23. - 'afterMatchBuilderId' => null
  24. - 'afterMatchBuilderIsInvoked' => false
  25. - 'methodNameMatcher' => PHPUnit_Framework_MockObject_Matcher_MethodName Object &000000007b8d93bf000000005f3b48ba (
  26. - 'constraint' => PHPUnit_Framework_Constraint_IsEqual Object &000000007b8d93bc000000005f3b48ba (
  27. - 'value' => 'setImageId'
  28. - 'delta' => 0
  29. - 'maxDepth' => 10
  30. - 'canonicalize' => false
  31. - 'ignoreCase' => true
  32. - 'lastFailure' => null
  33. - 'exporter' => SebastianBergmann\Exporter\Exporter Object &000000007b8d93bd000000005f3b48ba ()
  34. - )
  35. - )
  36. - 'parametersMatcher' => PHPUnit_Framework_MockObject_Matcher_Parameters Object &000000007b8d93dd000000005f3b48ba (
  37. - 'parameters' => Array &2 (
  38. - 0 => PHPUnit_Framework_Constraint_IsEqual Object &000000007b8d93dc000000005f3b48ba (
  39. - 'value' => 260495
  40. - 'delta' => 0.0
  41. - 'maxDepth' => 10
  42. - 'canonicalize' => false
  43. - 'ignoreCase' => false
  44. - 'lastFailure' => null
  45. - 'exporter' => SebastianBergmann\Exporter\Exporter Object &000000007b8d93df000000005f3b48ba ()
  46. - )
  47. - )
  48. - 'invocation' => null
  49. - )
  50. - 'stub' => null
  51. - )
  52. - 1 => PHPUnit_Framework_MockObject_Matcher Object &000000007b8d9382000000005f3b48ba (
  53. - 'invocationMatcher' => PHPUnit_Framework_MockObject_Matcher_InvokedCount Object &000000007b8d93b9000000005f3b48ba (
  54. - 'expectedCount' => 1
  55. - 'invocations' => Array &3 ()
  56. - )
  57. - 'afterMatchBuilderId' => null
  58. - 'afterMatchBuilderIsInvoked' => false
  59. - 'methodNameMatcher' => PHPUnit_Framework_MockObject_Matcher_MethodName Object &000000007b8d9383000000005f3b48ba (
  60. - 'constraint' => PHPUnit_Framework_Constraint_IsEqual Object &000000007b8d9380000000005f3b48ba (
  61. - 'value' => 'setImageHeight'
  62. - 'delta' => 0
  63. - 'maxDepth' => 10
  64. - 'canonicalize' => false
  65. - 'ignoreCase' => true
  66. - 'lastFailure' => null
  67. - 'exporter' => SebastianBergmann\Exporter\Exporter Object &000000007b8d9381000000005f3b48ba ()
  68. - )
  69. - )
  70. - 'parametersMatcher' => PHPUnit_Framework_MockObject_Matcher_Parameters Object &000000007b8d9386000000005f3b48ba (
  71. - 'parameters' => Array &4 (
  72. - 0 => PHPUnit_Framework_Constraint_IsEqual Object &000000007b8d9387000000005f3b48ba (
  73. - 'value' => 100
  74. - 'delta' => 0.0
  75. - 'maxDepth' => 10
  76. - 'canonicalize' => false
  77. - 'ignoreCase' => false
  78. - 'lastFailure' => null
  79. - 'exporter' => SebastianBergmann\Exporter\Exporter Object &000000007b8d9384000000005f3b48ba ()
  80. - )
  81. - )
  82. - 'invocation' => null
  83. - )
  84. - 'stub' => null
  85. - )
  86. - 2 => PHPUnit_Framework_MockObject_Matcher Object &000000007b8d938a000000005f3b48ba (
  87. - 'invocationMatcher' => PHPUnit_Framework_MockObject_Matcher_InvokedCount Object &000000007b8d939d000000005f3b48ba (
  88. - 'expectedCount' => 1
  89. - 'invocations' => Array &5 ()
  90. - )
  91. - 'afterMatchBuilderId' => null
  92. - 'afterMatchBuilderIsInvoked' => false
  93. - 'methodNameMatcher' => PHPUnit_Framework_MockObject_Matcher_MethodName Object &000000007b8d938b000000005f3b48ba (
  94. - 'constraint' => PHPUnit_Framework_Constraint_IsEqual Object &000000007b8d9388000000005f3b48ba (
  95. - 'value' => 'setImageWidth'
  96. - 'delta' => 0
  97. - 'maxDepth' => 10
  98. - 'canonicalize' => false
  99. - 'ignoreCase' => true
  100. - 'lastFailure' => null
  101. - 'exporter' => SebastianBergmann\Exporter\Exporter Object &000000007b8d9389000000005f3b48ba ()
  102. - )
  103. - )
  104. - 'parametersMatcher' => PHPUnit_Framework_MockObject_Matcher_Parameters Object &000000007b8d938e000000005f3b48ba (
  105. - 'parameters' => Array &6 (
  106. - 0 => PHPUnit_Framework_Constraint_IsEqual Object &000000007b8d938f000000005f3b48ba (
  107. - 'value' => 100
  108. - 'delta' => 0.0
  109. - 'maxDepth' => 10
  110. - 'canonicalize' => false
  111. - 'ignoreCase' => false
  112. - 'lastFailure' => null
  113. - 'exporter' => SebastianBergmann\Exporter\Exporter Object &000000007b8d938c000000005f3b48ba ()
  114. - )
  115. - )
  116. - 'invocation' => null
  117. - )
  118. - 'stub' => null
  119. - )
  120. - )
  121. - 'builderMap' => Array &0
  122. - )
  123. - '__phpunit_originalObject' => null
  124. - 'imageId' => null
  125. +OCA\MediaMetadata\Services\ImageDimension Object &000000007b8d937a000000005f3b48ba (
  126. + 'imageId' => 260495
  127. 'imageHeight' => null
  128. 'imageWidth' => null
  129. 'id' => null
  130. - '_updatedFields' => Array &7 ()
  131. - '_fieldTypes' => Array &7
  132. + '_updatedFields' => Array &0 (
  133. + 'imageId' => true
  134. + )
  135. + '_fieldTypes' => Array &0
  136. )
  137. #1 /var/www/GSoC/apps/mediametadata/lib/Hooks/ImageHooks.php:68
  138. #2 /var/www/GSoC/apps/mediametadata/tests/unit/Hooks/ImageHooksTest.php:120
  139. #3 OCA\MediaMetadata\Hooks\ImageHooksTest->testPostCreate
  140.  
  141. FAILURES!
  142. Tests: 1, Assertions: 1, Failures: 1.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement