Lines Matching refs:diff
26 $diff = new Diff($from, $to);
28 $this->assertSame($from, $diff->getFrom());
29 $this->assertSame($to, $diff->getTo());
30 … $this->assertSame(array(), $diff->getChunks(), 'Expect chunks to be default value "array()".');
39 $diff = new Diff($from, $to, $chunks);
41 $this->assertSame($from, $diff->getFrom());
42 $this->assertSame($to, $diff->getTo());
43 $this->assertSame($chunks, $diff->getChunks(), 'Expect chunks to be passed value.');
48 $diff = new Diff('line1c', 'line2c');
49 … $this->assertSame(array(), $diff->getChunks(), 'Expect chunks to be default value "array()".');
52 $diff->setChunks($chunks);
53 $this->assertSame($chunks, $diff->getChunks(), 'Expect chunks to be passed value.');