Completed
Push — master ( bd6c18...ae56ac )
by Stefano
02:51
created

NegotiationTest::testBestMatch()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
class NegotiationTest extends PHPUnit_Framework_TestCase {
4
5
  public function testBestMatch(){
6
    $accept  = 'image/*;q=0.9,*/*;q=0.2';
7
    $choices = 'text/html,svg/xml,image/svg+xml';
8
    $this->assertEquals(Negotiation::bestMatch($accept,$choices),'image/svg+xml');
9
  }
10
11
}
12
13