Exemplo n.º 1
0
 /**
  * @Event("LiveTest.Run.HandleResult")
  */
 public function handleResult(Result $result)
 {
     static $counter = 1;
     $log = array($counter, $result->getStatus(), $result->getRequest()->getUri(), $result->getMessage());
     fputcsv($this->handle, $log, ';');
     $counter++;
 }
Exemplo n.º 2
0
 public function testGetter()
 {
     $test = new Test('name', 'className');
     $status = Result::STATUS_SUCCESS;
     $message = 'foo';
     $request = Symfony::create(new Uri('http://www.example.com/'));
     $result = new Result($test, $status, $message, $request, new MockUp(), 'mySession');
     $this->assertEquals($test, $result->getTest());
     $this->assertEquals($status, $result->getStatus());
     $this->assertEquals($message, $result->getMessage());
     $this->assertEquals($request->getUri(), $result->getRequest()->getUri());
 }