Test fail on CollectionTest::testCollectionSort() #76

Closed
housebolt opened this Issue Aug 15, 2011 · 0 comments

2 participants

@housebolt

The new "sort" method on collections recently added to master fails on invalid call string

Assertion 'assertFalse' failed in lithium\tests\cases\util\CollectionTest::testCollectionSort() on line 301:

expected: false
result: array (
  '_config' => 
  array (
    'init' => true,
  ),
  '_methodFilters' => 
  array (
  ),
)

Looks like the sort() method needs to return false or the test needs to be modified so that it doesn't use assertFalse()

The possibility of throwing an exception on an invalid sort() call might be a solution as well

@gwoo gwoo closed this in ee2dffd Aug 16, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment