Beispiel #1
0
/**
 * @param Liner $liner
 * @return float
 */
function run($liner)
{
    $start = microtime(true);
    for ($i = 0; $i < 100; $i++) {
        $liner->read();
    }
    return microtime(true) - $start;
}
Beispiel #2
0
 /**
  * @test
  * @expectedException \PHPUnit_Framework_Error
  */
 public function rises_errors()
 {
     $file = new Liner($this->file);
     $file->oops();
 }