Skip to content

Commit

Permalink
Merge pull request #3985 from dogmatic69/patch-3
Browse files Browse the repository at this point in the history
Make the error message better for fixture errors
  • Loading branch information
lorenzo committed Jul 15, 2014
2 parents 070d800 + 8d58d93 commit b6eb562
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 b6eb562

Please sign in to comment.