Changeset 5962 for sites/trunk/api.wordpress.org/public_html/core/browse-happy/1.0/tests/phpunit/tests/browse-happy.php
- Timestamp:
- 09/25/2017 04:24:26 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/core/browse-happy/1.0/tests/phpunit/tests/browse-happy.php
r5961 r5962 252 252 } 253 253 254 /** 255 * @dataProvider data_browse_happy 256 * 257 * @param string $header 'User-Agent' header value. 258 */ 259 function test_mobile_browsers( $header ) { 260 $parsed = browsehappy_parse_user_agent( $header ); 261 262 if ( in_array( $parsed['platform'], array( 'Android', 'iPad', 'iPhone', 'Mobile', 'PlayBook', 'RIM Tablet OS' ) ) ) { 263 $this->assertTrue( $parsed['mobile'] ); 264 } else { 265 $this->assertFalse( $parsed['mobile'] ); 266 } 267 } 268 254 269 } 255
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)