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

throwsWhenTryingToGiveNonexistentFieldsWhileConstructing() public method

    public function throwsWhenTryingToGiveNonexistentFieldsWhileConstructing()
    {
        $this->factory->defineEntity('SpaceShip', array('name' => 'Alpha'));
        $self = $this;
        $this->assertThrows(function () use($self) {
            $self->factory->get('SpaceShip', array('pieType' => 'blueberry'));
        });
    }