function testVersionFormat() { $this->assertRegExp('/^[0-9]+\\.[0-9]+\\.[0-9]+$/', Services_Soundcloud_Version::get()); }
/** * Constructor. * * @param string $clientId OAuth client id * @param string $clientSecret OAuth client secret * @param string $redirectUri OAuth redirect uri * @param boolean $development Sandbox mode * * @throws Services_Soundcloud_Missing_Client_Id_Exception when missing client id * @return void */ function __construct($clientId, $clientSecret, $redirectUri = null, $development = false) { if (empty($clientId)) { throw new Services_Soundcloud_Missing_Client_Id_Exception(); } $this->_clientId = $clientId; $this->_clientSecret = $clientSecret; $this->_redirectUri = $redirectUri; $this->_development = $development; $this->_responseFormat = self::$_responseFormats['json']; $this->version = Services_Soundcloud_Version::get(); }