1
0
mirror of synced 2025-01-19 23:11:41 +03:00

Merge pull request #1004 from giosh94mhz/removed_useless_testinit

Removed all useless occurrence of require_once TestInit.php
This commit is contained in:
Guilherme Blanco 2014-04-07 08:38:39 -05:00
commit 73e5bbecbe
209 changed files with 104 additions and 499 deletions

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM;
use Doctrine\ORM\Mapping\ClassMetadata;
require_once __DIR__ . '/../TestInit.php';
/**
* Tests of the commit order calculation.
*
@ -53,4 +51,4 @@ class NodeClass1 {}
class NodeClass2 {}
class NodeClass3 {}
class NodeClass4 {}
class NodeClass5 {}
class NodeClass5 {}

View File

@ -8,8 +8,6 @@ use Doctrine\ORM\ORMException;
use ReflectionClass;
use PHPUnit_Framework_TestCase;
require_once __DIR__ . '/../TestInit.php';
/**
* Tests for the Configuration object
* @author Marco Pivetta <ocramius@gmail.com>

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Entity;
require_once __DIR__ . '/../../TestInit.php';
class ConstructorTest extends \Doctrine\Tests\OrmTestCase
{
public function testFieldInitializationInConstructor()

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM;
require_once __DIR__ . '/../TestInit.php';
class EntityManagerTest extends \Doctrine\Tests\OrmTestCase
{
private $_em;

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional;
use Doctrine\Common\Collections\Collection;
require_once __DIR__ . '/../../TestInit.php';
/**
* Base class for testing a many-to-many association mapping (without inheritance).
*/

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional;
use Doctrine\ORM\Query;
require_once __DIR__ . '/../../TestInit.php';
/**
* Functional tests for the Single Table Inheritance mapping strategy.
*

View File

@ -7,8 +7,6 @@ use Doctrine\Tests\Models\Company\CompanyEmployee,
Doctrine\Tests\Models\Company\CompanyPerson,
Doctrine\Tests\Models\Company\CompanyCar;
require_once __DIR__ . '/../../TestInit.php';
/**
* Functional Query tests.
*
@ -180,4 +178,4 @@ class AdvancedDqlQueryTest extends \Doctrine\Tests\OrmFunctionalTestCase
$this->_em->flush();
$this->_em->clear();
}
}
}

View File

@ -11,8 +11,6 @@ use Doctrine\Tests\Models\CMS\CmsGroup;
use Doctrine\Tests\Models\CMS\CmsArticle;
use Doctrine\Tests\Models\CMS\CmsComment;
require_once __DIR__ . '/../../TestInit.php';
class BasicFunctionalTest extends \Doctrine\Tests\OrmFunctionalTestCase
{
protected function setUp()

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Functional;
require_once __DIR__ . '/../../TestInit.php';
/**
* Functional tests for the Class Table Inheritance mapping strategy.
*

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\ORM\Functional;
use Doctrine\ORM\Event\OnClearEventArgs;
use Doctrine\ORM\Events;
require_once __DIR__ . '/../../TestInit.php';
/**
* ClearEventTest
*
@ -37,4 +35,4 @@ class OnClearListener
{
$this->called = true;
}
}
}

View File

@ -7,8 +7,6 @@ use Doctrine\Tests\Models\Navigation\NavTour;
use Doctrine\Tests\Models\Navigation\NavPhotos;
use Doctrine\Tests\Models\Navigation\NavUser;
require_once __DIR__ . '/../../TestInit.php';
class CompositePrimaryKeyTest extends \Doctrine\Tests\OrmFunctionalTestCase
{
public function setUp()

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Functional;
require_once __DIR__ . '/../../TestInit.php';
/**
* Tests basic operations on entities with default values.
*

View File

@ -8,8 +8,6 @@ use Doctrine\Tests\Models\CMS\CmsAddress;
use Doctrine\Tests\Models\CMS\CmsArticle;
use Doctrine\ORM\UnitOfWork;
require_once __DIR__ . '/../../TestInit.php';
/**
* Description of DetachedEntityTest
*

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional;
use Doctrine\ORM\Mapping\ClassMetadataInfo;
require_once __DIR__ . '/../../TestInit.php';
/**
* Description of ExtraLazyCollectionTest
*

View File

@ -7,8 +7,6 @@ use Doctrine\Tests\Models\CMS\CmsPhonenumber;
use Doctrine\ORM\Event\OnFlushEventArgs;
use Doctrine\ORM\Events;
require_once __DIR__ . '/../../TestInit.php';
/**
* FlushEventTest
*

View File

@ -7,8 +7,6 @@ use Doctrine\Tests\Models\CMS\CmsUser,
Doctrine\Tests\Models\CMS\CmsPhonenumber,
Doctrine\ORM\Query;
require_once __DIR__ . '/../../TestInit.php';
/**
* IdentityMapTest
*

View File

@ -6,8 +6,6 @@ use Doctrine\Tests\Models\StockExchange\Stock;
use Doctrine\Tests\Models\StockExchange\Market;
use Doctrine\Tests\Models\StockExchange\Bond;
require_once __DIR__ . '/../../TestInit.php';
/**
* @group DDC-250
*/

View File

@ -3,8 +3,6 @@
namespace Doctrine\Tests\ORM\Functional;
use Doctrine\ORM\Event\PreUpdateEventArgs;
require_once __DIR__ . '/../../TestInit.php';
class LifecycleCallbackTest extends \Doctrine\Tests\OrmFunctionalTestCase
{
protected function setUp() {
@ -456,4 +454,4 @@ class LifecycleCallbackEventArgEntity
{
$this->calls[__FUNCTION__] = $event;
}
}
}

View File

@ -7,8 +7,6 @@ use Doctrine\Tests\Models\CMS\CmsArticle,
Doctrine\DBAL\LockMode,
Doctrine\ORM\EntityManager;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group locking_functional
*/
@ -177,4 +175,4 @@ class GearmanLockTest extends \Doctrine\Tests\OrmFunctionalTestCase
$this->assertEquals(GEARMAN_SUCCESS, $this->gearman->returnCode());
}
}
}

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Functional\Locking;
require_once __DIR__ . "/../../../TestInit.php";
class LockAgentWorker
{
private $em;
@ -109,4 +107,4 @@ class LockAgentWorker
}
}
LockAgentWorker::run();
LockAgentWorker::run();

View File

@ -7,8 +7,6 @@ use Doctrine\Tests\Models\CMS\CmsArticle,
Doctrine\DBAL\LockMode,
Doctrine\ORM\EntityManager;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group locking
*/

View File

@ -10,8 +10,6 @@ use Doctrine\Tests\TestUtil;
use Doctrine\DBAL\LockMode;
use DateTime;
require_once __DIR__ . '/../../../TestInit.php';
class OptimisticTest extends \Doctrine\Tests\OrmFunctionalTestCase
{
protected function setUp()
@ -307,4 +305,4 @@ class OptimisticTimestamp
* @Version @Column(type="datetime")
*/
public $version;
}
}

View File

@ -7,8 +7,6 @@ use Doctrine\Tests\Models\CMS\CmsUser,
Doctrine\Tests\Models\CMS\CmsGroup,
Doctrine\Common\Collections\ArrayCollection;
require_once __DIR__ . '/../../TestInit.php';
/**
* Basic many-to-many association tests.
* ("Working with associations")

View File

@ -7,8 +7,6 @@ use Doctrine\Tests\Models\ECommerce\ECommerceCategory;
use Doctrine\ORM\Mapping\AssociationMapping;
use Doctrine\ORM\Query;
require_once __DIR__ . '/../../TestInit.php';
/**
* Tests a bidirectional many-to-many association mapping (without inheritance).
* Owning side is ECommerceProduct, inverse side is ECommerceCategory.

View File

@ -1,9 +1,10 @@
<?php
namespace Doctrine\Tests\ORM\Functional;
use Doctrine\Tests\Models\CMS\CmsUser;
use Doctrine\Tests\Models\CMS\CmsGroup;
use Doctrine\ORM\Events;
require_once __DIR__ . '/../../TestInit.php';
/**
* ManyToManyEventTest

View File

@ -6,8 +6,6 @@ use Doctrine\Tests\Models\ECommerce\ECommerceProduct;
use Doctrine\ORM\Mapping\AssociationMapping;
use Doctrine\ORM\Mapping\ClassMetadata;
require_once __DIR__ . '/../../TestInit.php';
/**
* Tests a self referential many-to-many association mapping (from a model to the same model, without inheritance).
* For simplicity the relation duplicates entries in the association table

View File

@ -7,8 +7,6 @@ use Doctrine\Tests\Models\ECommerce\ECommerceProduct;
use Doctrine\ORM\Mapping\AssociationMapping;
use Doctrine\ORM\Mapping\ClassMetadata;
require_once __DIR__ . '/../../TestInit.php';
/**
* Tests a unidirectional many-to-many association mapping (without inheritance).
* Inverse side is not present.

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Functional;
require_once __DIR__ . '/../../TestInit.php';
/**
* MappedSuperclassTest
*

View File

@ -17,8 +17,6 @@ use Doctrine\Tests\Models\Company\CompanyFixContract;
use Doctrine\Tests\Models\Company\CompanyEmployee;
use Doctrine\Tests\Models\Company\CompanyPerson;
require_once __DIR__ . '/../../TestInit.php';
/**
* NativeQueryTest
*

View File

@ -7,8 +7,6 @@ use Doctrine\Tests\Models\CMS\CmsEmail;
use Doctrine\Tests\Models\CMS\CmsAddress;
use Doctrine\Tests\Models\CMS\CmsPhonenumber;
require_once __DIR__ . '/../../TestInit.php';
/**
* @group DDC-1574
*/
@ -587,4 +585,4 @@ class ClassWithPrivateConstructor
{
$this->foo = $foo;
}
}
}

View File

@ -5,8 +5,6 @@ use Doctrine\Common\Collections\ArrayCollection,
Doctrine\Common\NotifyPropertyChanged,
Doctrine\Common\PropertyChangedListener;
require_once __DIR__ . '/../../TestInit.php';
/**
* NativeQueryTest
*

View File

@ -6,8 +6,6 @@ use Doctrine\Tests\Models\ECommerce\ECommerceProduct;
use Doctrine\Tests\Models\ECommerce\ECommerceFeature;
use Doctrine\Common\Collections\Criteria;
require_once __DIR__ . '/../../TestInit.php';
/**
* Tests a bidirectional one-to-one association mapping (without inheritance).
*/

View File

@ -6,8 +6,6 @@ use Doctrine\Tests\Models\CMS\CmsUser,
Doctrine\Tests\Models\CMS\CmsAddress,
Doctrine\Tests\Models\CMS\CmsPhonenumber;
require_once __DIR__ . '/../../TestInit.php';
/**
* Tests a bidirectional one-to-many association mapping with orphan removal.
*/
@ -72,4 +70,4 @@ class OneToManyOrphanRemovalTest extends \Doctrine\Tests\OrmFunctionalTestCase
$this->assertEquals(0, count($result), 'CmsPhonenumber should be removed by orphanRemoval');
}
}
}

View File

@ -6,8 +6,6 @@ use Doctrine\Tests\Models\ECommerce\ECommerceCategory;
use Doctrine\ORM\Mapping\AssociationMapping;
use Doctrine\ORM\Mapping\ClassMetadata;
require_once __DIR__ . '/../../TestInit.php';
/**
* Tests a bidirectional one-to-one association mapping (without inheritance).
*/

View File

@ -6,8 +6,6 @@ use Doctrine\Tests\Models\Routing\RoutingRoute;
use Doctrine\Tests\Models\Routing\RoutingLocation;
use Doctrine\Tests\Models\Routing\RoutingLeg;
require_once __DIR__ . '/../../TestInit.php';
/**
* Tests a bidirectional one-to-one association mapping (without inheritance).
*/

View File

@ -7,8 +7,6 @@ use Doctrine\Tests\Models\ECommerce\ECommerceCustomer;
use Doctrine\ORM\Mapping\AssociationMapping;
use Doctrine\ORM\Mapping\ClassMetadata;
require_once __DIR__ . '/../../TestInit.php';
/**
* Tests a bidirectional one-to-one association mapping (without inheritance).
*/

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Functional;
require_once __DIR__ . '/../../TestInit.php';
/**
* @group DDC-952
*/

View File

@ -7,8 +7,6 @@ use Doctrine\Tests\Models\CMS\CmsUser,
Doctrine\Tests\Models\CMS\CmsAddress,
Doctrine\Tests\Models\CMS\CmsPhonenumber;
require_once __DIR__ . '/../../TestInit.php';
/**
* Tests a bidirectional one-to-one association mapping with orphan removal.
*/
@ -91,4 +89,4 @@ class OneToOneOrphanRemovalTest extends \Doctrine\Tests\OrmFunctionalTestCase
$this->assertEquals(0, count($result), 'CmsEmail should be removed by orphanRemoval');
}
}
}

View File

@ -6,8 +6,6 @@ use Doctrine\Tests\Models\ECommerce\ECommerceCustomer;
use Doctrine\ORM\Mapping\AssociationMapping;
use Doctrine\ORM\Mapping\ClassMetadata;
require_once __DIR__ . '/../../TestInit.php';
/**
* Tests a self referential one-to-one association mapping (without inheritance).
* Relation is defined as the mentor that a customer choose. The mentor could

View File

@ -8,8 +8,6 @@ use Doctrine\ORM\Mapping\AssociationMapping;
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\Query;
require_once __DIR__ . '/../../TestInit.php';
/**
* Tests a unidirectional one-to-one association mapping (without inheritance).
* Inverse side is not present.

View File

@ -7,8 +7,6 @@ use Doctrine\Tests\Models\Routing\RoutingLocation;
use Doctrine\Tests\Models\Routing\RoutingLeg;
use Doctrine\Tests\Models\Routing\RoutingRouteBooking;
require_once __DIR__ . '/../../TestInit.php';
class OrderedCollectionTest extends \Doctrine\Tests\OrmFunctionalTestCase
{
protected $locations = array();
@ -110,4 +108,4 @@ class OrderedCollectionTest extends \Doctrine\Tests\OrmFunctionalTestCase
$this->assertEquals("Berlin", $route->legs[0]->fromLocation->getName());
$this->assertEquals("Bonn", $route->legs[1]->fromLocation->getName());
}
}
}

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional;
use Doctrine\ORM\Query;
require_once __DIR__ . '/../../TestInit.php';
/**
* Functional tests for the Single Table Inheritance mapping strategy.
*
@ -130,4 +128,4 @@ class OJTIC_Cat extends OJTIC_Pet
class OJTIC_Dog extends OJTIC_Pet
{
}
}

View File

@ -1,9 +1,10 @@
<?php
namespace Doctrine\Tests\ORM\Functional;
use Doctrine\Tests\Models\CMS\CmsUser;
use Doctrine\ORM\Event\PostFlushEventArgs;
use Doctrine\ORM\Events;
require_once __DIR__ . '/../../TestInit.php';
/**
* PostFlushEventTest

View File

@ -8,8 +8,6 @@ use Doctrine\Tests\Models\CMS\CmsEmail;
use Doctrine\ORM\Event\LifecycleEventArgs;
use Doctrine\ORM\Events;
require_once __DIR__ . '/../../TestInit.php';
/**
* PostLoadEventTest
*
@ -249,4 +247,4 @@ class PostLoadListener
// Expected to be mocked out
echo 'Should never be called!';
}
}
}

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\ORM\Functional;
use Doctrine\Tests\Models\CMS\CmsUser;
use Doctrine\Common\Cache\ArrayCache;
require_once __DIR__ . '/../../TestInit.php';
/**
* QueryCacheTest
*

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional;
use Doctrine\Tests\Models\Company\CompanyManager;
require_once __DIR__ . '/../../TestInit.php';
/**
* Functional Query tests.
*
@ -399,4 +397,4 @@ class QueryDqlFunctionTest extends \Doctrine\Tests\OrmFunctionalTestCase
$this->_em->flush();
$this->_em->clear();
}
}
}

View File

@ -12,8 +12,6 @@ use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\Query;
use Doctrine\ORM\Query\Parameter;
require_once __DIR__ . '/../../TestInit.php';
/**
* Functional Query tests.
*

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Functional;
require_once __DIR__ . '/../../TestInit.php';
/**
* Functional Query tests.
*

View File

@ -8,8 +8,6 @@ use Doctrine\Tests\Models\ECommerce\ECommerceProduct;
use Doctrine\Tests\Models\ECommerce\ECommerceShipping;
use Doctrine\Tests\Models\Company\CompanyAuction;
require_once __DIR__ . '/../../TestInit.php';
/**
* Tests the generation of a proxy object for lazy loading.
* @author Giorgio Sironi <piccoloprincipeazzurro@gmail.com>

View File

@ -6,8 +6,6 @@ use Doctrine\Tests\Models\CMS\CmsUser;
use Doctrine\Tests\Models\CMS\CmsArticle;
use Doctrine\Common\Cache\ArrayCache;
require_once __DIR__ . '/../../TestInit.php';
/**
* ResultCacheTest
*

View File

@ -25,8 +25,6 @@ use Doctrine\Tests\Models\Company\CompanyAuction;
use Doctrine\Tests\Models\Company\CompanyFlexContract;
use Doctrine\Tests\Models\Company\CompanyFlexUltraContract;
require_once __DIR__ . '/../../TestInit.php';
/**
* Tests SQLFilter functionality.
*

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional\SchemaTool;
use Doctrine\DBAL\Schema\Schema;
require_once __DIR__ . '/../../../TestInit.php';
/**
* Functional tests for the Class Table Inheritance mapping strategy.
*

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\ORM\Functional\SchemaTool;
use Doctrine\ORM\Tools\SchemaTool,
Doctrine\ORM\Mapping\ClassMetadata;
require_once __DIR__ . '/../../../TestInit.php';
class MySqlSchemaToolTest extends \Doctrine\Tests\OrmFunctionalTestCase
{
protected function setUp() {

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\ORM\Functional\SchemaTool;
use Doctrine\ORM\Tools\SchemaTool,
Doctrine\ORM\Mapping\ClassMetadata;
require_once __DIR__ . '/../../../TestInit.php';
class PostgreSqlSchemaToolTest extends \Doctrine\Tests\OrmFunctionalTestCase
{
protected function setUp()

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional;
use Doctrine\DBAL\Schema\Sequence;
require_once __DIR__ . '/../../TestInit.php';
class SequenceEmulatedIdentityStrategyTest extends \Doctrine\Tests\OrmFunctionalTestCase
{
/**

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Functional;
require_once __DIR__ . '/../../TestInit.php';
/**
* Description of SequenceGeneratorTest
*
@ -50,4 +48,4 @@ class SequenceEntity
* @SequenceGenerator(allocationSize=5,sequenceName="person_id_seq")
*/
public $id;
}
}

View File

@ -9,8 +9,6 @@ use Doctrine\Tests\Models\ECommerce\ECommerceCart,
use Doctrine\ORM\Mapping\AssociationMapping;
require_once __DIR__ . '/../../TestInit.php';
/**
* Tests capabilities of the persister.
* @author Giorgio Sironi <piccoloprincipeazzurro@gmail.com>

View File

@ -5,7 +5,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Tests\Models\CMS\CmsArticle;
use Doctrine\Tests\Models\CMS\CmsUser;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1040
@ -78,4 +77,4 @@ class DDC1040Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->assertSame($article, $farticle);
}
}
}

View File

@ -3,7 +3,6 @@
namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1041
@ -30,4 +29,4 @@ class DDC1041Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->assertNull($this->_em->getReference('Doctrine\Tests\Models\Company\CompanyFlexContract', $id));
$this->assertNull($this->_em->getPartialReference('Doctrine\Tests\Models\Company\CompanyFlexContract', $id));
}
}
}

View File

@ -3,7 +3,6 @@
namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1043
@ -33,4 +32,4 @@ class DDC1043Test extends \Doctrine\Tests\OrmFunctionalTestCase
$user = $this->_em->find("Doctrine\Tests\Models\CMS\CmsUser", $user->id);
$this->assertSame("44", $user->status);
}
}
}

View File

@ -3,7 +3,6 @@
namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1050
@ -34,4 +33,4 @@ class DDC1050Test extends \Doctrine\Tests\OrmFunctionalTestCase
$e = microtime(true);
echo __FUNCTION__ . " - " . ($e - $s) . " seconds" . PHP_EOL;
}
}
}

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Functional\Ticket;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1080
*/

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1113
* @group DDC-1306

View File

@ -3,7 +3,6 @@
namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1129
@ -43,4 +42,4 @@ class DDC1129Test extends \Doctrine\Tests\OrmFunctionalTestCase
$changeSet = $uow->getEntityChangeSet($article);
$this->assertEquals(0, count($changeSet), "No changesets should be computed.");
}
}
}

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Functional\Ticket;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1151
*/
@ -53,4 +51,4 @@ class DDC1151Group
{
/** @Id @Column(type="integer") @GeneratedValue */
public $id;
}
}

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Functional\Ticket;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1163
*/
@ -212,4 +210,4 @@ class DDC1163Tag
$this->product = $product;
}
}
}

View File

@ -10,8 +10,6 @@ use Doctrine\Tests\Models\DDC117\DDC117ApproveChanges;
use Doctrine\Tests\Models\DDC117\DDC117Editor;
use Doctrine\Tests\Models\DDC117\DDC117Link;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-117
*/

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Functional\Ticket;
require_once __DIR__ . '/../../../TestInit.php';
class DDC1181Test extends \Doctrine\Tests\OrmFunctionalTestCase
{
public function setUp()
@ -98,4 +96,4 @@ class DDC1181Room
{
/** @Id @Column(type="integer") @GeneratedValue */
public $id;
}
}

View File

@ -1,8 +1,6 @@
<?php
namespace Doctrine\Tests\ORM\Functional\Ticket;
require_once __DIR__ . '/../../../TestInit.php';
use DateTime, Doctrine\DBAL\Types\Type;
class DDC1193Test extends \Doctrine\Tests\OrmFunctionalTestCase

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection;
require_once __DIR__ . '/../../../TestInit.php';
class DDC1209Test extends \Doctrine\Tests\OrmFunctionalTestCase
{
protected function setUp()
@ -122,4 +120,4 @@ class DateTime2 extends \DateTime
{
return $this->format('Y');
}
}
}

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Tests\Models\CMS\CmsEmployee;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1225
*/
@ -82,4 +80,4 @@ class DDC1225_TestEntity2
* @Column(type="integer")
*/
private $id;
}
}

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Tests\Models\CMS\CmsEmployee;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1228
* @group DDC-1226
@ -133,4 +131,4 @@ class DDC1228Profile
{
$this->name = $name;
}
}
}

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Tests\Models\CMS\CmsEmployee;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1238
*/

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Tests\Models\CMS\CmsEmployee;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1250
*/
@ -93,4 +91,4 @@ lifecycleCallbacks: { }
repositoryClass: Entities\ClientsHistoryRepository
*/
*/

View File

@ -6,8 +6,6 @@ use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Tests\Models\CMS\CmsUser;
use Doctrine\Tests\Models\CMS\CmsGroup;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1276
*/
@ -47,4 +45,4 @@ class DDC1276Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->_em->flush();
}
}
}

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Functional\Ticket;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1300
*/
@ -105,4 +103,4 @@ class DDC1300FooLocale
*/
public $_title = null;
}
}

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\ORM\Mapping\ClassMetadataInfo;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @author asm89
*

View File

@ -7,8 +7,6 @@ use Doctrine\Tests\Models\CMS\CmsUser;
use Doctrine\Tests\Models\CMS\CmsGroup;
use Doctrine\Tests\Models\CMS\CmsPhonenumber;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1306
*/
@ -51,4 +49,4 @@ class DDC1306Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->_em->remove($user);
$this->_em->flush();
}
}
}

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use DateTime;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1335
*/
@ -215,4 +213,4 @@ class DDC1335Phone
$this->user = $user;
$this->numericalValue = $number;
}
}
}

View File

@ -3,8 +3,6 @@
namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\ORM\UnitOfWork;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1383
*/
@ -96,4 +94,4 @@ class DDC1383Entity extends DDC1383AbstractEntity
{
$this->reference = $reference;
}
}
}

View File

@ -1,9 +1,8 @@
<?php
namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\ORM\UnitOfWork;
require_once __DIR__ . '/../../../TestInit.php';
use Doctrine\ORM\UnitOfWork;
/**
* @group DDC-1392
@ -124,4 +123,4 @@ class DDC1392File
{
return $this->fileId;
}
}
}

View File

@ -1,9 +1,8 @@
<?php
namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\ORM\UnitOfWork;
require_once __DIR__ . '/../../../TestInit.php';
use Doctrine\ORM\UnitOfWork;
/**
* @group DDC-1400
@ -128,4 +127,4 @@ class DDC1400UserState
*/
public $articleId;
}
}

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Functional\Ticket;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1404
*/

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Tests\Models\Quote\User;
use Doctrine\Tests\Models\Quote\Address;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1845
* @group DDC-142
@ -86,4 +84,4 @@ class DDC142Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->assertNull($this->_em->find('Doctrine\Tests\Models\Quote\User', $id));
}
}
}

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Functional\Ticket;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1430
*/

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Functional\Ticket;
require_once __DIR__ . '/../../../TestInit.php';
class DDC144Test extends \Doctrine\Tests\OrmFunctionalTestCase
{
protected function setUp() {

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\UnitOfWork;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1452
*/
@ -124,4 +122,4 @@ class DDC1452EntityB
* @ManyToOne(targetEntity="DDC1452EntityA")
*/
public $entityATo;
}
}

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\ORM\UnitOfWork;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1454
*/
@ -66,4 +64,4 @@ class DDC1454File
return $this->fileId;
}
}
}

View File

@ -6,8 +6,6 @@ use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Tests\Models\CMS\CmsUser;
use Doctrine\Tests\Models\CMS\CmsGroup;
require_once __DIR__ . '/../../../TestInit.php';
class DDC1258Test extends \Doctrine\Tests\OrmFunctionalTestCase
{
public function setUp()

View File

@ -5,7 +5,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Tests\Models\CMS\CmsArticle;
use Doctrine\Tests\Models\CMS\CmsUser;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1461
@ -83,4 +82,4 @@ class DDC1461TwitterAccount
* @OneToOne(targetEntity="DDC1461User", fetch="EAGER")
*/
public $user;
}
}

View File

@ -5,8 +5,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\UnitOfWork;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1514
*/

View File

@ -8,8 +8,6 @@ use Doctrine\Tests\Models\CMS\CmsComment;
use Doctrine\Tests\Models\CMS\CmsArticle;
use Doctrine\Tests\Models\CMS\CmsUser;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1545
*/
@ -198,4 +196,4 @@ class DDC1545Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->assertNotNull($article->user);
$this->assertEquals($user2->id, $article->user->id);
}
}
}

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Tests\Models\Company\CompanyPerson;
require_once __DIR__ . '/../../../TestInit.php';
class DDC163Test extends \Doctrine\Tests\OrmFunctionalTestCase
{
protected function setUp()
@ -62,4 +60,4 @@ class DDC163Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->assertEquals('p1', $result[0]['person_name']);
$this->assertEquals('p2', $result[0]['friend_name']);
}
}
}

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Tests\Models\Company\CompanyEmployee;
require_once __DIR__ . '/../../../TestInit.php';
class DDC168Test extends \Doctrine\Tests\OrmFunctionalTestCase
{
protected $oldMetadata;

View File

@ -1,11 +1,10 @@
<?php
namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\NotifyPropertyChanged,
Doctrine\Common\PropertyChangedListener;
require_once __DIR__ . '/../../../TestInit.php';
class DDC1690Test extends \Doctrine\Tests\OrmFunctionalTestCase
{
protected function setUp() {
@ -157,4 +156,4 @@ class DDC1690Child extends NotifyBaseEntity {
function getParent() {
return $this->parent;
}
}
}

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Tests\Models\Quote\SimpleEntity;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1719
*/
@ -91,4 +89,4 @@ class DDC1719Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->assertNull($e2);
}
}
}

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\ORM\UnitOfWork;
require_once __DIR__ . '/../../../TestInit.php';
class DDC1757Test extends \Doctrine\Tests\OrmFunctionalTestCase
{
public function testFailingCase()

View File

@ -2,8 +2,6 @@
namespace Doctrine\Tests\ORM\Functional\Ticket;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1787
*/

View File

@ -4,8 +4,6 @@ namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Tests\Models\Quote\Group;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1845
* @group DDC-1843
@ -133,4 +131,4 @@ class DDC1843Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->assertNull($e4);
}
}
}

View File

@ -6,8 +6,6 @@ use Doctrine\Tests\Models\Taxi\Car,
Doctrine\Tests\Models\Taxi\Ride,
Doctrine\Tests\Models\Taxi\PaidRide;
require_once __DIR__ . '/../../../TestInit.php';
/**
* @group DDC-1884
* @author Sander Coolen <sander@jibber.nl>

Some files were not shown because too many files have changed in this diff Show More