public function loadFromFile($fileName)
    {
        if (!is_readable($fileName)) {
            throw new \InvalidArgumentException(sprintf('"%s" does not exist or is not readable', $fileName));
        }

        $iterator = new \ArrayIterator([new \SplFileInfo($fileName)]);
        return $this->loadFromIterator($iterator);
    }
public function loadFromFile($fileName)
    {
        if (!is_readable($fileName)) {
            throw new \InvalidArgumentException(sprintf('"%s" does not exist or is not readable', $fileName));
        }

        $iterator = new \ArrayIterator([new \SplFileInfo($fileName)]);
        return $this->loadFromIterator($iterator);
    }
public function loadFromFile ( $ fileName ) { if ( ! is_readable ( $ fileName ) ) { throw new \ InvalidArgumentException ( sprintf ( '"%s" does not exist or is not readable' , $ fileName ) ) ; } $ iterator = new \ ArrayIterator ( [ new \ SplFileInfo ( $ fileName ) ] ) ; return $ this -> loadFromIterator ( $ iterator ) ; }
Find fixtures classes in a given file and load them.

@param string $fileName File to find fixture classes in.
@return array $fixtures Array of loaded fixture object instances.
Find fixtures classes in a given file and load them .