lithium\tests\cases\test\MockerTest::testMultipleResultsComplex PHP Method

testMultipleResultsComplex() public method

    public function testMultipleResultsComplex()
    {
        $results = array('method1' => array(array('args' => array(), 'results' => true, 'time' => 100)), 'method2' => array(array('args' => array(), 'results' => true, 'time' => 100)));
        $staticResults = array('method1' => array(array('args' => array(), 'results' => true, 'time' => 0), array('args' => array(), 'results' => true, 'time' => 200)));
        $expected = array('method1' => array(array('args' => array(), 'results' => true, 'time' => 0), array('args' => array(), 'results' => true, 'time' => 100), array('args' => array(), 'results' => true, 'time' => 200)), 'method2' => array(array('args' => array(), 'results' => true, 'time' => 100)));
        $this->assertEqual($expected, Mocker::mergeResults($results, $staticResults));
    }