This repository contains the stuff needed to run the full test suite of Orient on Travis CI.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function probe(cb) { | |
var wsCtor = window['MozWebSocket'] ? MozWebSocket : WebSocket; | |
var socket = new wsCtor(uri, 'blah'); | |
socket.onopen = function () { | |
// Send a probe | |
socket.send(JSON.stringify({ | |
type: 'probe', | |
data: {} | |
})); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class User { | |
/** | |
* Returns the first address of the consumer, false otherwise. | |
* | |
* @return mixed | |
*/ | |
public function getAddress() |