| @@ -1,33 +0,0 @@ | ||||
| <?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. | ||||
|  * | ||||
|  * @package    Comparator | ||||
|  * @author     Bernhard Schussek <bschussek@2bepublished.at> | ||||
|  * @copyright  Sebastian Bergmann <sebastian@phpunit.de> | ||||
|  * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License | ||||
|  * @link       http://www.github.com/sebastianbergmann/comparator | ||||
|  */ | ||||
| class Author | ||||
| { | ||||
|     // the order of properties is important for testing the cycle! | ||||
|     public $books = array(); | ||||
|  | ||||
|     private $name = ''; | ||||
|  | ||||
|     public function __construct($name) | ||||
|     { | ||||
|         $this->name = $name; | ||||
|     } | ||||
| } | ||||
| @@ -1,26 +0,0 @@ | ||||
| <?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. | ||||
|  * | ||||
|  * @package    Comparator | ||||
|  * @author     Bernhard Schussek <bschussek@2bepublished.at> | ||||
|  * @copyright  Sebastian Bergmann <sebastian@phpunit.de> | ||||
|  * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License | ||||
|  * @link       http://www.github.com/sebastianbergmann/comparator | ||||
|  */ | ||||
| class Book | ||||
| { | ||||
|     // the order of properties is important for testing the cycle! | ||||
|     public $author = null; | ||||
| } | ||||
| @@ -1,19 +0,0 @@ | ||||
| <?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'; | ||||
|     } | ||||
| } | ||||
| @@ -1,34 +0,0 @@ | ||||
| <?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. | ||||
|  * | ||||
|  * @package    Comparator | ||||
|  * @author     Sebastian Bergmann <sebastian@phpunit.de> | ||||
|  * @copyright  Sebastian Bergmann <sebastian@phpunit.de> | ||||
|  * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License | ||||
|  * @link       http://www.github.com/sebastianbergmann/comparator | ||||
|  */ | ||||
| class SampleClass | ||||
| { | ||||
|     public $a; | ||||
|     protected $b; | ||||
|     protected $c; | ||||
|  | ||||
|     public function __construct($a, $b, $c) | ||||
|     { | ||||
|         $this->a = $a; | ||||
|         $this->b = $b; | ||||
|         $this->c = $c; | ||||
|     } | ||||
| } | ||||
| @@ -1,30 +0,0 @@ | ||||
| <?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. | ||||
|  * | ||||
|  * @package    Comparator | ||||
|  * @author     Sebastian Bergmann <sebastian@phpunit.de> | ||||
|  * @copyright  Sebastian Bergmann <sebastian@phpunit.de> | ||||
|  * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License | ||||
|  * @link       http://www.github.com/sebastianbergmann/comparator | ||||
|  */ | ||||
| class Struct | ||||
| { | ||||
|     public $var; | ||||
|  | ||||
|     public function __construct($var) | ||||
|     { | ||||
|         $this->var = $var; | ||||
|     } | ||||
| } | ||||
| @@ -1,14 +0,0 @@ | ||||
| <?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 { | ||||
| } | ||||
| @@ -1,14 +0,0 @@ | ||||
| <?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
	 sujitprasad
					sujitprasad