32 $this->fixture = $this->
getAccessibleMock(
'\\TYPO3\\CMS\\Frontend\\MediaWizard\\MediaWizardProvider', array(
'dummy'), array(),
'', FALSE);
40 'http://youtu.be/2PMeCSQ--08' => array(
41 'http://youtu.be/2PMeCSQ--08',
42 'http://www.youtube.com/v/2PMeCSQ--08?fs=1' 44 'http://www.youtube.com/embed/2PMeCSQ--08' => array(
45 'http://www.youtube.com/embed/2PMeCSQ--08',
46 'http://www.youtube.com/v/2PMeCSQ--08?fs=1' 48 'http://www.youtube.com/watch?v=2PMeCSQ--08' => array(
49 'http://www.youtube.com/watch?v=2PMeCSQ--08',
50 'http://www.youtube.com/v/2PMeCSQ--08?fs=1' 52 'http://www.youtube.com/?v=2PMeCSQ--08' => array(
53 'http://www.youtube.com/?v=2PMeCSQ--08',
54 'http://www.youtube.com/v/2PMeCSQ--08?fs=1' 56 'http://www.youtube.com/v/2PMeCSQ--08' => array(
57 'http://www.youtube.com/v/2PMeCSQ--08',
58 'http://www.youtube.com/v/2PMeCSQ--08?fs=1' 60 'http://www.youtube.com/e/2PMeCSQ--08' => array(
61 'http://www.youtube.com/e/2PMeCSQ--08',
62 'http://www.youtube.com/v/2PMeCSQ--08?fs=1' 64 'http://www.youtube.com/watch?feature=player_embedded&v=2PMeCSQ--08' => array(
65 'http://www.youtube.com/watch?feature=player_embedded&v=2PMeCSQ--08',
66 'http://www.youtube.com/v/2PMeCSQ--08?fs=1' 68 'http://www.youtube.com/watch?v=2PMeCSQ--08&list=PLGWGc5dfbzn_pvtJg7XskLva9XZpNTI88' => array(
69 'http://www.youtube.com/watch?v=2PMeCSQ--08&list=PLGWGc5dfbzn_pvtJg7XskLva9XZpNTI88',
70 'http://www.youtube.com/v/2PMeCSQ--08?fs=1' 85 $result = $this->fixture->_call(
'process_youtube', $url);
86 $this->assertEquals($expected,
$result);
getAccessibleMock( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren't numeric.