New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tests] Errors with prepareTestedSiblings() lead to non execution of tests #49
Comments
Strange, I use phpunit, as laravel says, and no errors appear. |
I have two ClosureTable folders, one inside a laravel project that i update via composer to your repo, one in my documents folder, and in both cases i get the same errors. OSX 10.7.5 / macbookpro Dependencies installed through composer (identical in both folders)
If you need more info let me know! |
Updated php to 5.5.3, errors persist. I don't know where i should bang my head on. I'm going to setup a vm with vagrant to test on linux. |
I did further tests on a vm created with vagrant from this repo: https://github.com/bryannielsen/Laravel4-Vagrant and i still get all 34 errors: http://paste.laravel.com/WV4 |
My setup is Mac OS X 10.7.5 and I don't use virtual machine. PHP is: PHP 5.4.16 (cli) (built: Jun 15 2013 04:04:59)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with Xdebug v2.2.2, Copyright (c) 2002-2013, by Derick Rethans PHPUnit 3.7.21 by Sebastian Bergmann. |
Line 544 is where $this->getKey() is called, hm... |
What makes me think is that before the last call to $child = $page->appendChild(Page::make(array(
'title' => 'Child Page Test Title',
'excerpt' => 'Child Page Test Excerpt',
'content' => 'Child Page Test content',
'language' => 'en'
)), 0, true); or on line 117, at the end of this: $child1 = $page->appendChild(Page::make(array(
'title' => 'Test Title',
'excerpt' => 'Test Excerpt',
'content' => 'Test content',
'language' => 'en'
)), 0, true); |
Tried on Windows 7 32bit (MINGW32_NT-6.1) as well, PHP 5.5.4 (cli), PHPUnit 3.7.27, i still get all 34 errors: |
How have you sped, Andea? |
@franzose, nothing new at the moment, i tried to write other tests for |
@vjandrea, and now, you wouldn't believe, I've got the same 34 errors! great. So, now it's a problem of both of us :D |
And I know the reason. |
@vjandrea, when we call |
We have to change somehow the way |
Amazing! Now i know where i should bang my head on! I'm trying to figure out something. |
So, what if we put a check in |
@vjandrea, I think that can break things. Now I'm trying to assume that when we |
@franzose that's great! Do you mind pasting the error dump of the remaining 5, or create a hotfix branch with your edit that i can pull to test? |
@vjandrea, aaaaaaaaarrgghhhhhh! Sorry, but it's fucking great. I have solved problems with siblings at last! Sorry, but you'll need to update your repository and merge with your changes. |
fixed #49, many problems with querying siblings
Brilliant job, @franzose! |
@vjandrea thanks, however I suppose that there's still problem with the |
There's something wrong with the return value of
prepareTestedSiblings()
because everytime it's called i get aInvalidArgumentException: Value must be provided.
error message.I have an issue with xdebug and i can't dig deeper into this at the moment, anyway i noticed that if there's an error a test execution is halted, because a
$this->assertEquals(true, false)
dropped below the assignment is never evaluated.The text was updated successfully, but these errors were encountered: