1
0
mirror of synced 2025-02-03 05:49:25 +03:00

28 Commits

Author SHA1 Message Date
Marco Pivetta
dc3b166811 #6017 replaced random_int() with rand(), since we still support oldstable PHP (5.6.x) 2016-11-27 18:38:57 +01:00
Marco Pivetta
92274124f9 #6017 moving tests around clear() into the EntityManager tests
`UnitOfWork` assumptions are OK, since we don't want to clutter the API even more down there
2016-11-27 18:37:45 +01:00
Marco Pivetta
49333867f8 FQCN reference correction 2016-11-27 18:36:49 +01:00
Marco Pivetta
d2643eeb8b #6136 Removed regex assertion - constant assertion is sufficient 2016-11-18 09:19:27 +01:00
SpacePossum
e37041aa94 Update message. 2016-11-18 08:06:11 +01:00
SpacePossum
f9a605f6ca Add details about invalid Connection passed at creation. 2016-11-17 17:23:22 +01:00
Sebastian Bergmann
9da83cfae8 Make test suite compatible with PHPUnit 5.4.
* Use createMock() and getMockBuilder() instead of getMock()
* Use expectException() and expectExceptionMessage() instead of setExpectedException()
2016-06-18 13:01:59 +02:00
Mikhail Shamin
bf322b903d Optimize imports. Remove full qualified class names 2016-05-11 01:55:12 +07:00
Giorgio Premi
6cb3fa8fb7 Removed all useless occurrence of require_once TestInit.php 2014-04-07 14:43:25 +02:00
Justin Martin
8b4b8e7268 Test EntityManager::createNamedQuery.
Test EntityManager::createNamedNativeQuery.
2013-11-06 20:07:48 -08:00
Lars Strojny
164269bff1 Allow passing any callable instead of only closures 2012-06-16 13:20:34 +02:00
Fabio B. Silva
c2cee0d6eb error messages 2011-12-22 11:05:11 -02:00
Benjamin Eberlei
cd6131c9b8 Remove all trailing whitespaces 2011-12-19 22:56:19 +01:00
kwiateusz
49c735109c Change from assertType to assertInstanceOf.
Now PHPUnit doesn't show warning about deprecation of assertType.
Also some refractoring from assertTrue($a instanceof $b) to assertInstanceOf.
Leading \ in namespaces is not required so I removed it from few assertions.
2011-07-26 11:38:09 +02:00
Guilherme Blanco
26bd3e3811 Implemented support for closure return on EntityManager::transactional. Fixes DDC-1125 2011-04-25 18:32:43 -03:00
Guilherme Blanco
dcf358f154 Fixed some warnings from phpunit. 2011-02-19 19:50:58 -02:00
Benjamin Eberlei
c6a6aaf493 DDC-899 - Add method to check if EntityManager is still open. 2010-12-03 17:44:24 +01:00
Roman S. Borschel
913e58e385 [DDC-167] Implemented. 2010-07-20 14:27:14 +02:00
romanb
96eaf67e0f [2.0][DDC-350] Fixed. Patch provided by Christian Heinrich. 2010-02-21 23:26:42 +00:00
romanb
d76096d045 [2.0][DDC-288] Removed deprecated flush modes. 2010-01-29 21:36:05 +00:00
guilhermeblanco
0a7727e16a [2.0][DDC-234] Make sure is defined in QueryBuilder Expressions. 2010-01-04 16:37:39 +00:00
romanb
c727483ad8 [2.0][DDC-208] Fixed. 2009-12-18 13:20:22 +00:00
romanb
7bbdac1c88 [2.0][DDC-61][DDC-108] Fixed. Started exception refactoring. 2009-11-03 18:30:21 +00:00
romanb
10e3407ed1 [2.0][DDC-70] Added some EntityManager tests provided by beberlei. 2009-10-28 22:12:45 +00:00
jwage
68147808f6 [2.0] Cleaning up tests and removing some unused files to remove any confusion 2009-02-18 07:59:11 +00:00
romanb
9dcab5ee63 Small reorganizations, improvements and progress. 2009-02-07 17:02:13 +00:00
romanb
0ac97e7adf [2.0] Making use of new constant __DIR__ 2009-01-24 16:56:44 +00:00
romanb
22e94ac594 Enabling namespaces. Final restructurings. 2009-01-22 19:38:10 +00:00