protected function getFixture($name)
    {
        // The user may provide either a class name or a short
        // name identifier. So we'll track it down here.

        foreach ($this->fixtures as $fixture) {
            if ($fixture->shortName == $name) {
                return $fixture;
            }

            if ($fixture->name == $name && ! $fixture->shortName) {
                return $fixture;
            }
        }

        throw new TestDummyException(
            'Could not locate a factory with the name: ' . $name
        );
    }
protected function getFixture($name)
    {
        // The user may provide either a class name or a short
        // name identifier. So we'll track it down here.

        foreach ($this->fixtures as $fixture) {
            if ($fixture->shortName == $name) {
                return $fixture;
            }

            if ($fixture->name == $name && ! $fixture->shortName) {
                return $fixture;
            }
        }

        throw new TestDummyException(
            'Could not locate a factory with the name: ' . $name
        );
    }
protected function getFixture ( $ name ) { // The user may provide either a class name or a short // name identifier. So we'll track it down here. foreach ( $ this -> fixtures as $ fixture ) { if ( $ fixture -> shortName == $ name ) { return $ fixture ; } if ( $ fixture -> name == $ name && ! $ fixture -> shortName ) { return $ fixture ; } } throw new TestDummyException ( 'Could not locate a factory with the name: ' . $ name ) ; }
Get a single fixture.

@param  string $name
@throws TestDummyException
@return mixed
Get a single fixture .