commitall
This commit is contained in:
28
hostel/vendor/sebastian/comparator/tests/_files/Author.php
vendored
Normal file
28
hostel/vendor/sebastian/comparator/tests/_files/Author.php
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is part of the Comparator package.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace SebastianBergmann\Comparator;
|
||||
|
||||
/**
|
||||
* An author.
|
||||
*
|
||||
*/
|
||||
class Author
|
||||
{
|
||||
// the order of properties is important for testing the cycle!
|
||||
public $books = array();
|
||||
|
||||
private $name = '';
|
||||
|
||||
public function __construct($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
}
|
21
hostel/vendor/sebastian/comparator/tests/_files/Book.php
vendored
Normal file
21
hostel/vendor/sebastian/comparator/tests/_files/Book.php
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is part of the Comparator package.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace SebastianBergmann\Comparator;
|
||||
|
||||
/**
|
||||
* A book.
|
||||
*
|
||||
*/
|
||||
class Book
|
||||
{
|
||||
// the order of properties is important for testing the cycle!
|
||||
public $author = null;
|
||||
}
|
19
hostel/vendor/sebastian/comparator/tests/_files/ClassWithToString.php
vendored
Normal file
19
hostel/vendor/sebastian/comparator/tests/_files/ClassWithToString.php
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is part of the Comparator package.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace SebastianBergmann\Comparator;
|
||||
|
||||
class ClassWithToString
|
||||
{
|
||||
public function __toString()
|
||||
{
|
||||
return 'string representation';
|
||||
}
|
||||
}
|
29
hostel/vendor/sebastian/comparator/tests/_files/SampleClass.php
vendored
Normal file
29
hostel/vendor/sebastian/comparator/tests/_files/SampleClass.php
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is part of the Comparator package.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace SebastianBergmann\Comparator;
|
||||
|
||||
/**
|
||||
* A sample class.
|
||||
*
|
||||
*/
|
||||
class SampleClass
|
||||
{
|
||||
public $a;
|
||||
protected $b;
|
||||
protected $c;
|
||||
|
||||
public function __construct($a, $b, $c)
|
||||
{
|
||||
$this->a = $a;
|
||||
$this->b = $b;
|
||||
$this->c = $c;
|
||||
}
|
||||
}
|
25
hostel/vendor/sebastian/comparator/tests/_files/Struct.php
vendored
Normal file
25
hostel/vendor/sebastian/comparator/tests/_files/Struct.php
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is part of the Comparator package.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace SebastianBergmann\Comparator;
|
||||
|
||||
/**
|
||||
* A struct.
|
||||
*
|
||||
*/
|
||||
class Struct
|
||||
{
|
||||
public $var;
|
||||
|
||||
public function __construct($var)
|
||||
{
|
||||
$this->var = $var;
|
||||
}
|
||||
}
|
14
hostel/vendor/sebastian/comparator/tests/_files/TestClass.php
vendored
Normal file
14
hostel/vendor/sebastian/comparator/tests/_files/TestClass.php
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is part of the Comparator package.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace SebastianBergmann\Comparator;
|
||||
|
||||
class TestClass {
|
||||
}
|
14
hostel/vendor/sebastian/comparator/tests/_files/TestClassComparator.php
vendored
Normal file
14
hostel/vendor/sebastian/comparator/tests/_files/TestClassComparator.php
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is part of the Comparator package.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace SebastianBergmann\Comparator;
|
||||
|
||||
class TestClassComparator extends ObjectComparator {
|
||||
}
|
Reference in New Issue
Block a user