PHP Classes

File: tests/unit/GraphTest.php

Recommend this page to a friend!
  Classes of Jon Lawrence   Equation Operating System   tests/unit/GraphTest.php   Download  
File: tests/unit/GraphTest.php
Role: Unit test script
Content type: text/plain
Description: For testing
Class: Equation Operating System
Solve equations with multiple variables
Author: By
Last change:
Date: 8 years ago
Size: 405 bytes
 

Contents

Class file image Download
<?php

require_once __DIR__ . "/../../vendor/autoload.php";

use
jlawrence\eos\Graph;


class
GraphTest extends PHPUnit_Framework_TestCase
{
    public function
testInit()
    {
       
$this->assertTrue(Graph::init(640, 480));
    }

    public function
testGraphImage()
    {
       
Graph::graph('x', -10, 10, null, true, true, null, null);
       
$this->assertFalse(is_null(Graph::outGD()));
    }
}