Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function validProvider() { |
||
20 | $formatterMock = $this->getMock('PPP\Wikidata\ValueFormatters\JsonLd\JsonLdDataValueFormatter'); |
||
21 | $formatterMock->expects($this->any()) |
||
22 | ->method('format') |
||
23 | ->with($this->equalTo(new StringValue('foo'))) |
||
24 | ->will($this->returnValue((object) array('@value' => 'foo'))); |
||
25 | |||
26 | return array( |
||
27 | array( |
||
28 | new StringValue('foo'), |
||
29 | (object) array('@value' => 'foo'), |
||
30 | null, |
||
31 | $formatterMock |
||
32 | ), |
||
33 | ); |
||
34 | } |
||
35 | |||
43 |