PHP Classes

File: tests/Phabstractic/Data/Types/None.php

Recommend this page to a friend!
  Classes of Asher Wolfstein   PHP Registry with Singleton Trait   tests/Phabstractic/Data/Types/None.php   Download  
File: tests/Phabstractic/Data/Types/None.php
Role: Unit test script
Content type: text/plain
Description: unit testing
Class: PHP Registry with Singleton Trait
Set and get registry values using singleton trait
Author: By
Last change: actual unit test
Date: 8 years ago
Size: 546 bytes
 

Contents

Class file image Download
<?php

require_once('src/Phabstractic/Data/Types/None.php');

use
PHPUnit\Framework\TestCase;
use
Phabstractic\Data\Types;

class
NoneTest extends TestCase
{
    protected
$none;

    protected function
setUp()
    {
       
$this->none = new Types\None();
    }

    public function
testConstant()
    {
       
$this->assertNull(Types\None::NULL);
    }

    public function
testProperty()
    {
       
$this->assertNull($this->none->null);
    }

    public function
testMethod()
    {
       
$this->assertNull($this->none->null());
    }
}