File tree 2 files changed +35
-1
lines changed
2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " swaggest/json-diff" ,
3
- "description" : " JSON diff and merge tool for PHP" ,
3
+ "description" : " JSON diff and rearrange tool for PHP" ,
4
4
"type" : " tool" ,
5
5
"license" : " MIT" ,
6
6
"authors" : [
Original file line number Diff line number Diff line change
1
+ <?php
2
+ namespace Swaggest \JsonDiff \Tests ;
3
+
4
+ use Swaggest \JsonDiff \Cli \Diff ;
5
+ use Yaoi \Command \Definition ;
6
+
7
+ class CliTest extends \PHPUnit_Framework_TestCase
8
+ {
9
+ public function testCli ()
10
+ {
11
+ Diff::setUpDefinition (new Definition (), new \stdClass ());
12
+
13
+ $ d = new Diff ();
14
+ $ d ->originalPath = __DIR__ . '/../../composer.json ' ;
15
+ $ d ->newPath = __DIR__ . '/../../composer.json ' ;
16
+
17
+ $ d ->action = Diff::ACTION_CHANGES ;
18
+ $ d ->performAction ();
19
+
20
+ $ d ->action = Diff::ACTION_REARRANGE ;
21
+ $ d ->performAction ();
22
+
23
+ $ d ->action = Diff::ACTION_ADDITIONS ;
24
+ $ d ->performAction ();
25
+
26
+ $ d ->action = Diff::ACTION_MODIFICATIONS ;
27
+ $ d ->performAction ();
28
+
29
+ $ d ->action = Diff::ACTION_REMOVALS ;
30
+ $ d ->performAction ();
31
+ }
32
+
33
+
34
+ }
You can’t perform that action at this time.
0 commit comments