PHP Classes

File: tests/failure-tests/InvalidTypeTest.php

Recommend this page to a friend!
  Packages of Maik Greubel   Caribu ORM   tests/failure-tests/InvalidTypeTest.php   Download  
File: tests/failure-tests/InvalidTypeTest.php
Role: Unit test script
Content type: text/plain
Description: Another failing unit test
Class: Caribu ORM
Map objects to databases records using annotations
Author: By
Last change: Strong type and documentation fixes
Date: 9 years ago
Size: 425 bytes
 

 

Contents

Class file image Download
<?php
namespace Nkey\Caribu\Tests;

use Nkey\Caribu\Orm\Orm;

class InvalidTypeTest extends \PHPUnit\Framework\TestCase
{
    /**
     * @expectedException Nkey\Caribu\Orm\OrmException
     */
    public function testInvalidType()
    {
        Orm::passivate();

        $options = array(
            'type' => 'invalidtype',
        );

        Orm::configure($options);
        Orm::getInstance()->getConnection();
    }
}