Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
ContainerTest
n/a
0 / 0
100.00% covered (success)
100.00%
28 / 28
28
n/a
0 / 0
 setUp
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 tearDown
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testConstructor
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testRaise
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testAddItemCustom
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testAddItem
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testAddAsFirst
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testSuicide
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testGetItemsCount
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testAddNextTo
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testLastItem
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testAddToLastItem
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testGetFirstPart
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testAddItems
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testEmptyContents
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testTakeJavascripts
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testTakeCascadeStyles
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testDrawAllContents
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testGetRendered
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testShowContents
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testDrawIfNotDrawn
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testIsFinalized
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testSetFinalized
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testFillUp
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testFillMeUp
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testIsEmpty
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 testDraw
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
 test__toString
100.00% covered (success)
100.00%
1 / 1
1
n/a
0 / 0
<?php
namespace Test\Ease;
use Ease\Container;
/**
 * Generated by PHPUnit_SkeletonGenerator on 2016-01-17 at 23:58:14.
 */
class ContainerTest extends SandTest
{
    /**
     * @var Container
     */
    protected $object;
    /**
     * Sets up the fixture, for example, opens a network connection.
     * This method is called before a test is executed.
     */
    protected function setUp()
    {
        $this->object = new Container();
    }
    /**
     * Tears down the fixture, for example, closes a network connection.
     * This method is called after a test is executed.
     */
    protected function tearDown()
    {
        
    }
    public function testConstructor()
    {
        parent::testConstructor();
        $tester = new \Ease\Container('test');
        $this->assertEquals('test', $tester->__toString());
    }
    /**
     * @covers Ease\Container::raise
     */
    public function testRaise()
    {
        $div                   = new \Ease\Html\Div('TestDiv');
        $this->object->webPage = new \Ease\WebPage('toRaise');
        $this->object->raise($div);
        $this->object->raise($div, ['webPage']);
        $this->assertEquals($div->webPage, $this->object->webPage);
    }
    /**
     * @covers Ease\Container::addItemCustom
     */
    public function testAddItemCustom()
    {
        $context = new \Ease\Html\Div();
        Container::addItemCustom('*', $context);
        $this->assertEquals("\n<div>*</div>", $context->getRendered());
        $context = new \Ease\Html\Div();
        Container::addItemCustom(new \Ease\Html\ImgTag(null), $context);
        $this->assertEquals("\n<div>\n<img src=\"\" /></div>",
            $context->getRendered());
    }
    /**
     * @covers Ease\Container::addItem
     */
    public function testAddItem()
    {
        $prober   = new \Ease\Html\H1Tag();
        $inserted = $this->object->addItem($prober);
        $this->assertEquals($inserted, $prober);
        $this->assertEquals($prober, end($this->object->pageParts));
    }
    /**
     * @covers Ease\Container::addAsFirst
     *
     * @todo   Implement testAddAsFirst().
     */
    public function testAddAsFirst()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::suicide
     *
     * @todo   Implement testSuicide().
     */
    public function testSuicide()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::getItemsCount
     */
    public function testGetItemsCount()
    {
        $this->object->emptyContents();
        $this->assertEquals(0, $this->object->getItemsCount());
        $this->object->addItem('@');
        $this->assertEquals(1, $this->object->getItemsCount());
        $this->assertEquals(2,
            $this->object->getItemsCount(new \Ease\Html\Div(['a', 'b'])));
    }
    /**
     * @covers Ease\Container::addNextTo
     *
     * @todo   Implement testAddNextTo().
     */
    public function testAddNextTo()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::lastItem
     *
     * @todo   Implement testLastItem().
     */
    public function testLastItem()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::addToLastItem
     *
     * @todo   Implement testAddToLastItem().
     */
    public function testAddToLastItem()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::getFirstPart
     *
     * @todo   Implement testGetFirstPart().
     */
    public function testGetFirstPart()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::addItems
     *
     * @todo   Implement testAddItems().
     */
    public function testAddItems()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::emptyContents
     *
     * @todo   Implement testEmptyContents().
     */
    public function testEmptyContents()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::takeJavascripts
     *
     * @todo   Implement testTakeJavascripts().
     */
    public function testTakeJavascripts()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::takeCascadeStyles
     *
     * @todo   Implement testTakeCascadeStyles().
     */
    public function testTakeCascadeStyles()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::drawAllContents
     *
     * @todo   Implement testDrawAllContents().
     */
    public function testDrawAllContents()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::getRendered
     */
    public function testGetRendered()
    {
        $this->object->addItem('*');
        $this->assertNotEmpty($this->object->getRendered());
    }
    /**
     * @covers Ease\Container::showContents
     *
     * @todo   Implement testShowContents().
     */
    public function testShowContents()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::drawIfNotDrawn
     *
     * @todo   Implement testDrawIfNotDrawn().
     */
    public function testDrawIfNotDrawn()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::isFinalized
     *
     * @todo   Implement testIsFinalized().
     */
    public function testIsFinalized()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::setFinalized
     *
     * @todo   Implement testSetFinalized().
     */
    public function testSetFinalized()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::fillUp
     *
     * @todo   Implement testFillUp().
     */
    public function testFillUp()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::fillMeUp
     *
     * @todo   Implement testFillMeUp().
     */
    public function testFillMeUp()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::isEmpty
     */
    public function testIsEmpty()
    {
        $this->object->emptyContents();
        $this->assertTrue($this->object->isEmpty());
        $this->object->addItem('@');
        $this->assertFalse($this->object->isEmpty($this->object));
    }
    /**
     * @covers Ease\Container::draw
     *
     * @todo   Implement testDraw().
     */
    public function testDraw($whatWant = null)
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
    /**
     * @covers Ease\Container::__toString
     *
     * @todo   Implement test__toString().
     */
    public function test__toString()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
            'This test has not been implemented yet.'
        );
    }
}