jbroadway / elefant

Elefant, the refreshingly simple PHP CMS and web framework.
http://www.elefantcms.com
MIT License
209 stars 39 forks source link

Multi key support #238

Open techanon opened 9 years ago

techanon commented 9 years ago

Added methods: _key_type Updated methods: construct, get, put, remove, field TODO methods: call, next

techanon commented 9 years ago

I think both of those comments might be related (first one causing the second). Can you run those tests again with that model fix I pushed?

jbroadway commented 9 years ago

Still getting the exact same results. Do you have PHPUnit, and can you try running the tests via phpunit.phar tests/ModelTest.php? I'm also getting an error in the ExtendedModel test too:

$ phpunit.phar tests/ExtendedModelTest.php 
PHPUnit 4.4.0 by Sebastian Bergmann.

Configuration read from /Users/lux/projects/elefant/www/phpunit.xml.dist

FSSSS

Time: 32 ms, Memory: 3.50Mb

There was 1 failure:

1) ExtendedModelTest::test_create
Failed asserting that null matches expected 1.

/Users/lux/projects/elefant/www/tests/ExtendedModelTest.php:52

FAILURES!                                        
Tests: 1, Assertions: 4, Failures: 1, Skipped: 4.