@@ -783,7 +783,7 @@ public function testFindObjectsFromSqlHierarchyUp(): void
783
783
public function testLogger (): void
784
784
{
785
785
$ arrayLogger = new ArrayLogger ();
786
- $ tdbmService = new TDBMService (new Configuration ('TheCodingMachine \\TDBM \\Test \\Dao \\Bean ' , 'TheCodingMachine \\TDBM \\Test \\Dao ' , ' TheCodingMachine \\ TDBM \\ Test \\ ResultIterator ' , self ::getConnection (), $ this ->getNamingStrategy (), null , null , $ arrayLogger ));
786
+ $ tdbmService = new TDBMService (new Configuration ('TheCodingMachine \\TDBM \\Test \\Dao \\Bean ' , 'TheCodingMachine \\TDBM \\Test \\Dao ' , self ::getConnection (), $ this ->getNamingStrategy (), null , null , $ arrayLogger ));
787
787
788
788
$ tdbmService ->setLogLevel (LogLevel::DEBUG );
789
789
$ beans = $ tdbmService ->findObjects ('contact ' , null , [], 'contact.id ASC ' , [], null , TDBMObject::class);
@@ -808,7 +808,7 @@ public function testFindObjectsFromSqlCountWithOneToManyLink(): void
808
808
809
809
public function testBuildFilterFromFilterBagIterator (): void
810
810
{
811
- $ tdbmService = new TDBMService (new Configuration ('TheCodingMachine \\TDBM \\Test \\Dao \\Bean ' , 'TheCodingMachine \\TDBM \\Test \\Dao ' , ' TheCodingMachine \\ TDBM \\ Test \\ ResultIterator ' , self ::getConnection (), $ this ->getNamingStrategy (), null , null , new NullLogger ()));
811
+ $ tdbmService = new TDBMService (new Configuration ('TheCodingMachine \\TDBM \\Test \\Dao \\Bean ' , 'TheCodingMachine \\TDBM \\Test \\Dao ' , self ::getConnection (), $ this ->getNamingStrategy (), null , null , new NullLogger ()));
812
812
813
813
[$ sql , $ parameters , $ counter ] = $ tdbmService ->buildFilterFromFilterBag (new \ArrayIterator (['id ' => 1 ]), self ::getConnection ()->getDatabasePlatform ());
814
814
$ this ->assertRegExp ('/\(.id. = :tdbmparam1\)/ ' , $ sql );
@@ -819,7 +819,7 @@ public function testFindObjectsMethodWithoutResultIteratorClass(): void
819
819
{
820
820
$ this ->expectException (TDBMInvalidArgumentException::class);
821
821
$ this ->expectExceptionMessageRegExp ('/^\$resultIteratorClass should be a ` ' . preg_quote (ResultIterator::class, '/ ' ) . '`. `(.*)` provided\.$/ ' );
822
- $ tdbmService = new TDBMService (new Configuration ('TheCodingMachine \\TDBM \\Test \\Dao \\Bean ' , 'TheCodingMachine \\TDBM \\Test \\Dao ' , ' TheCodingMachine \\ TDBM \\ Test \\ ResultIterator ' , self ::getConnection (), $ this ->getNamingStrategy (), null , null , new NullLogger ()));
822
+ $ tdbmService = new TDBMService (new Configuration ('TheCodingMachine \\TDBM \\Test \\Dao \\Bean ' , 'TheCodingMachine \\TDBM \\Test \\Dao ' , self ::getConnection (), $ this ->getNamingStrategy (), null , null , new NullLogger ()));
823
823
824
824
$ tdbmService ->findObjects ('' , null , [], null , [], null , null , self ::class);
825
825
}
@@ -828,7 +828,7 @@ public function testFindObjectsFromSqlMethodWithoutResultIteratorClass(): void
828
828
{
829
829
$ this ->expectException (TDBMInvalidArgumentException::class);
830
830
$ this ->expectExceptionMessageRegExp ('/^\$resultIteratorClass should be a ` ' . preg_quote (ResultIterator::class, '/ ' ) . '`. `(.*)` provided\.$/ ' );
831
- $ tdbmService = new TDBMService (new Configuration ('TheCodingMachine \\TDBM \\Test \\Dao \\Bean ' , 'TheCodingMachine \\TDBM \\Test \\Dao ' , ' TheCodingMachine \\ TDBM \\ Test \\ ResultIterator ' , self ::getConnection (), $ this ->getNamingStrategy (), null , null , new NullLogger ()));
831
+ $ tdbmService = new TDBMService (new Configuration ('TheCodingMachine \\TDBM \\Test \\Dao \\Bean ' , 'TheCodingMachine \\TDBM \\Test \\Dao ' , self ::getConnection (), $ this ->getNamingStrategy (), null , null , new NullLogger ()));
832
832
833
833
$ tdbmService ->findObjectsFromSql ('' , '' , null , [], null , null , null , self ::class);
834
834
}
@@ -837,7 +837,7 @@ public function testFindObjectsFromRawSqlMethodWithoutResultIteratorClass(): voi
837
837
{
838
838
$ this ->expectException (TDBMInvalidArgumentException::class);
839
839
$ this ->expectExceptionMessageRegExp ('/^\$resultIteratorClass should be a ` ' . preg_quote (ResultIterator::class, '/ ' ) . '`. `(.*)` provided\.$/ ' );
840
- $ tdbmService = new TDBMService (new Configuration ('TheCodingMachine \\TDBM \\Test \\Dao \\Bean ' , 'TheCodingMachine \\TDBM \\Test \\Dao ' , ' TheCodingMachine \\ TDBM \\ Test \\ ResultIterator ' , self ::getConnection (), $ this ->getNamingStrategy (), null , null , new NullLogger ()));
840
+ $ tdbmService = new TDBMService (new Configuration ('TheCodingMachine \\TDBM \\Test \\Dao \\Bean ' , 'TheCodingMachine \\TDBM \\Test \\Dao ' , self ::getConnection (), $ this ->getNamingStrategy (), null , null , new NullLogger ()));
841
841
842
842
$ tdbmService ->findObjectsFromRawSql ('' , '' , [], null , null , null , self ::class);
843
843
}
0 commit comments