Skip to content

Commit e96abf2

Browse files
committed
Added tests fixtures for all current operations.
This allow developers to easily check if their change broke anything in the compare output.
1 parent bd90707 commit e96abf2

16 files changed

+146
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace fixtures;
4+
5+
class ClassAdded
6+
{
7+
8+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace fixtures;
4+
5+
class ClassMethodAdded
6+
{
7+
public function newMethod()
8+
{
9+
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace fixtures;
4+
5+
class ClassMethodImplementationChanged
6+
{
7+
public function newMethod()
8+
{
9+
$x = 3;
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace fixtures;
4+
5+
class ClassMethod
6+
{
7+
public function newMethod($someParameter)
8+
{
9+
10+
}
11+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace fixtures;
4+
5+
class ClassMethodRemoved
6+
{
7+
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace fixtures;
4+
5+
function functionAdded()
6+
{
7+
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace fixtures;
4+
5+
function functionImplementationChanged()
6+
{
7+
$x = 3;
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace fixtures;
4+
5+
function functionParameterMismatch($someParameter)
6+
{
7+
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace fixtures;
4+
5+
class ClassMethodAdded
6+
{
7+
8+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace fixtures;
4+
5+
class ClassMethodImplementationChanged
6+
{
7+
public function newMethod()
8+
{
9+
$x = 0;
10+
}
11+
}

0 commit comments

Comments
 (0)