for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Onoi\HttpRequest;
/**
* @license GNU GPL v2+
* @since 1.0
*
* @author mwjames
*/
class NullRequest implements HttpRequest {
* {@inheritDoc}
public function ping() {
return false;
}
public function setOption( $name, $value ) {}
public function getOption( $name ) {}
public function getLastTransferInfo( $name = null ) {
return null;
public function getLastError() {
return '';
public function getLastErrorCode() {
return 0;
public function execute() {}