21301 Posts in 5736 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 142 Views |
-
PhpUnit vs sake test behaviour

5 October 2012 at 12:38pm Last edited: 5 October 2012 12:41pm
Hi everybody,
I would like to run unit test via phpunit as described here:
http://doc.silverstripe.org/framework/en/howto/phpunit-configurationRunning Test with phpunit and sake seems to behave differently.
Some test pass in sake but don't in phpunit.For example phpunit sapphire/tests/SiteTreeBacklinksTest.php
results in ...FFF and a
Fatal error: Call to a member function obj() on a non-object in .../sapphire/tests/SiteTreeBacklinksTest.php on line 227sake dev/tests/SiteTreeBacklinksTest
results in .......
ALL TEST PASSThis behavior occures with multiple files. They pass in sake but fail in phpunit.
I'm running SS 2.4.5 and
PHPUnit 3.5.14Any ideas how I could get the tests to pass with PHPUnit.
Thanks
| 142 Views | ||
|
Page:
1
|
Go to Top |

