AudioDidact\SupportedSites\YouTube::cURLHTTPStatus
Use cURL to get the HTTP status of a given URL
Signature
private function cURLHTTPStatus(
$url )
Parameters
$url
—
Returns
- int
Test Coverage
Information
- Coverage: 10/10 Lines (100%)
- Tests: 6
- Passed: 6 (100%)
Tests
- [ PASSED ] — YouTubeTest::testConstructor
- [ PASSED ] — YouTubeTest::testBadID1
- [ PASSED ] — YouTubeTest::testBadID2
- [ PASSED ] — YouTubeTest::testBadID3
- [ PASSED ] — YouTubeTest::testBadID4
- [ PASSED ] — YouTubeTest::testDownload