lithium\tests\cases\core\StaticObjectTest::testCallingUnfilteredMethods PHP Method

testCallingUnfilteredMethods() public method

Tests that calling a filter-able method with no filters added does not trigger an error.
    public function testCallingUnfilteredMethods()
    {
        $class = 'lithium\\tests\\mocks\\core\\MockStaticMethodFiltering';
        $result = $class::manual(array(function ($self, $params, $chain) {
            return '-' . $chain->next($self, $params, $chain) . '-';
        }));
        $expected = '-Working-';
        $this->assertEqual($expected, $result);
    }