Code Duplication    Length = 8-8 lines in 2 locations

tests/TDBMServiceTest.php 2 locations

@@ 358-365 (lines=8) @@
355
     *
356
     * @throws TDBMException
357
     */
358
    public function testBeanGetException()
359
    {
360
        $beans = $this->tdbmService->findObjects('contact', null, [], 'contact.id ASC', [], null, TDBMObject::class);
361
        $bean = $beans[0];
362
363
        // we don't specify the table on inheritance table => exception.
364
        $bean->getProperty('id');
365
    }
366
367
    /**
368
     * @expectedException \TheCodingMachine\TDBM\TDBMException
@@ 372-379 (lines=8) @@
369
     *
370
     * @throws TDBMException
371
     */
372
    public function testBeanSetException()
373
    {
374
        $beans = $this->tdbmService->findObjects('contact', null, [], 'contact.id ASC', [], null, TDBMObject::class);
375
        $bean = $beans[0];
376
377
        // we don't specify the table on inheritance table => exception.
378
        $bean->setProperty('name', 'foo');
379
    }
380
381
    public function testTake()
382
    {