Skip to content
Permalink
Browse files

Make the error message better for fixture errors

The stack trace has no details about which fixture is the actual problem.
  • Loading branch information...
dogmatic69 committed Jul 15, 2014
1 parent 070d800 commit 8d58d936360451c96242a1c5bf9803ece769d64c
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/TestSuite/Fixture/CakeTestFixture.php
@@ -289,7 +289,7 @@ public function insert($db) {
foreach ($this->records as $record) {
$merge = array_values(array_merge($default, $record));
if (count($fields) !== count($merge)) {
throw new CakeException('Fixture invalid: Count of fields does not match count of values');
throw new CakeException('Fixture invalid: Count of fields does not match count of values in ' . get_class($this));
}
$values[] = $merge;
}

0 comments on commit 8d58d93

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.