FactoryGirl\Tests\Provider\Doctrine\Fixtures\IncorrectUsageTest::throwsWhenTryingToGetLessThanOneInstance PHP Method

throwsWhenTryingToGetLessThanOneInstance() public method

    public function throwsWhenTryingToGetLessThanOneInstance()
    {
        $this->factory->defineEntity('SpaceShip');
        $self = $this;
        $this->assertThrows(function () use($self) {
            $self->factory->getList('SpaceShip', array(), 0);
        });
    }