Merge pull request #3985 from dogmatic69/patch-3

Make the error message better for fixture errors
This commit is contained in:
José Lorenzo Rodríguez 2014-07-15 14:30:18 +02:00
commit b6eb5624f8

View file

@ -289,7 +289,7 @@ class CakeTestFixture {
foreach ($this->records as $record) { foreach ($this->records as $record) {
$merge = array_values(array_merge($default, $record)); $merge = array_values(array_merge($default, $record));
if (count($fields) !== count($merge)) { 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; $values[] = $merge;
} }