public function setDomain($domain) { $this->domain = $domain; return $this; }
function it_should_call_the_logger_error_method_when_the_log_contains_an_error($logger) { $log = new LogOperation((new DeleteOperation('foo'))->setServer('bar')); $log->setError('foo'); $log->setDomain('foo.bar'); $log->start()->stop(); $logger->error('(foo.bar on bar) End Delete Operation - Error: foo, Completed in ' . round(($log->getStopTime() - $log->getStartTime()) * 1000) . " ms.")->shouldBeCalled(); $this->start($log); }