mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #3985 from dogmatic69/patch-3
Make the error message better for fixture errors
This commit is contained in:
commit
b6eb5624f8
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ class CakeTestFixture {
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue