也许需要启用 PHP 扩展来完成这项工作。在数组中使用时,所有测试assertEquals
都在下降。usort
看看下面的坠落测试结果:
13) Piwik\Tests\Unit\DataAccess\JoinGeneratorTest::test_sortTablesForJoin_shouldSortTablesWithCustomJoinRequiringEachOther2
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
0 => 'log_link_visit_action'
1 => Array (
'table' => 'log_action'
- 'tableAlias' => 'log_action_idaction_event_action'
- 'joinOn' => 'log_link_visit_action.idaction_event_action = log_action_idaction_event_action.idaction'
+ 'tableAlias' => 'log_action_visit_entry_idaction_name'
+ 'joinOn' => 'log_visit.visit_entry_idaction_name = log_action_visit_entry_idaction_name.idaction'
)
2 => Array (
'table' => 'log_action'
- 'tableAlias' => 'log_action_visit_entry_idaction_name'
- 'joinOn' => 'log_visit.visit_entry_idaction_name = log_action_visit_entry_idaction_name.idaction'
+ 'tableAlias' => 'log_action_idaction_event_action'
+ 'joinOn' => 'log_link_visit_action.idaction_event_action = log_action_idaction_event_action.idaction'
)
)
/matomo-3.5.1/tests/PHPUnit/Unit/DataAccess/LogQueryBuilder/JoinGeneratorTest.php:428
FAILURES!
Tests: 6521, Assertions: 10544, Failures: 13.