PHP Classes

File: tests/org/majkel/tcpdfwarper/generator/ConfigMetaMethodTest.php

Recommend this page to a friend!
  Classes of Michal Kowalik   TCPDF Warper   tests/org/majkel/tcpdfwarper/generator/ConfigMetaMethodTest.php   Download  
File: tests/org/majkel/tcpdfwarper/generator/ConfigMetaMethodTest.php
Role: Unit test script
Content type: text/plain
Description: test generator
Class: TCPDF Warper
Create PDF documents using TCPDF fluent interface
Author: By
Last change: Update of tests/org/majkel/tcpdfwarper/generator/ConfigMetaMethodTest.php
Date: 11 months ago
Size: 727 bytes
 

Contents

Class file image Download
<?php
/**
 * Created by PhpStorm.
 * Package: org\majkel\tcpdfwarper
 * User: Micha? (majkel) Kowalik <maf.michal@gmail.com>
 * Date: 12/28/2014
 * Time: 22:36
 */

namespace org\majkel\tcpdfwarper\generator;

/**
 * Class ConfigMetaMethodTest
 * @package org\majkel\tcpdfwarper\generator
 * @coversDefaultClass \org\majkel\tcpdfwarper\generator\ConfigMetaMethod
 */
class ConfigMetaMethodTest extends \PHPUnit_Framework_TestCase {

   
/**
     * @covers ::fromArray
     */
   
public function testFromArray() {
       
$obj = ConfigMetaMethod::fromArray(array(
               
'name' => 1,
               
'args' => array(2),
               
'doc' => 3,
        ));
       
self::assertSame(1, $obj->name);
       
self::assertSame(array(2), $obj->args);
       
self::assertSame(3, $obj->doc);
    }

}