lithium\tests\cases\test\GroupTest::testAddByMixedThroughConstructor PHP Method

testAddByMixedThroughConstructor() public method

    public function testAddByMixedThroughConstructor()
    {
        $group = new Group(array('data' => array('lithium\\tests\\cases\\data\\ModelTest', new ObjectTest())));
        $expected = new Collection(array('data' => array(new ModelTest(), new ObjectTest())));
        $result = $group->tests();
        $this->assertEqual($expected, $result);
    }