Location: PHPKode > scripts > Craur > Craur-1.7.4/tests/non_existing_csv_file.php
<?php

try 
{
    $shelf = Craur::createFromCsvFile(dirname(__FILE__) . '/fixtures/non_existing_books.csv', array(
        'book[].name',
    ));
    assert(false);
}
catch (Exception $exception)
{
    /*
     * Great, the file does not exist!
     */
}
Return current item: Craur