Faker\Test\Provider\BaseTest::testUniqueAllowsChainingMethodCall PHP Method

testUniqueAllowsChainingMethodCall() public method

    public function testUniqueAllowsChainingMethodCall()
    {
        $faker = new \Faker\Generator();
        $faker->addProvider(new \Faker\Provider\Base($faker));
        $faker->addProvider(new \ArrayObject(array(1)));
        // hack because method_exists forbids stubs
        $this->assertEquals(1, $faker->unique()->count());
    }
BaseTest