Skip to content

Commit

Permalink
Make the error message better for fixture errors
Browse files Browse the repository at this point in the history
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 8d58d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/TestSuite/Fixture/CakeTestFixture.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8d58d93

Please sign in to comment.