Sokil\Mongo\DocumentBehaviorTest::testPublicMethods PHP Method

testPublicMethods() public method

public testPublicMethods ( )
    public function testPublicMethods()
    {
        $behavior = new \Sokil\Mongo\SomeBehavior();
        $reflection = new \ReflectionClass($behavior);
        $methods = array_map(function ($method) {
            return $method->getName();
        }, $reflection->getMethods(\ReflectionMethod::IS_PUBLIC));
        $this->assertEquals(array('return42', 'returnOwnerParam', 'returnOption', '__construct', 'setOwner'), $methods);
    }