ColorThief\Test\ColorThiefTest::testDoCutLeftGreaterThanRight PHP Method

testDoCutLeftGreaterThanRight() public method

    public function testDoCutLeftGreaterThanRight()
    {
        $method = new \ReflectionMethod('\\ColorThief\\ColorThief', 'doCut');
        $method->setAccessible(true);
        // $left > $right
        $result = $method->invoke(null, "g", new \ColorThief\VBox(0, 13, 0, 17, 0, 10, null), array(38, 149, 512, 1151, 1741, 2554, 3530, 4624, 5899, 7247, 8788, 10261, 11645, 12906, 13969, 14871, 15654, 16329), 16329, array(16291, 16180, 15817, 15178, 14588, 13775, 12799, 11705, 10430, 9082, 7541, 6068, 4684, 3423, 2360, 1458, 675, 0));
        $this->assertEquals(new \ColorThief\VBox(0, 13, 0, 4, 0, 10, null), $result[0]);
        $this->assertEquals(new \ColorThief\VBox(0, 13, 5, 17, 0, 10, null), $result[1]);
    }