PhpOffice\PhpPresentation\Tests\Shape\RichText\RunTest::testText PHP Method

testText() public method

public testText ( )
    public function testText()
    {
        $object = new Run();
        $this->assertEquals('', $object->getText());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\Run', $object->setText());
        $this->assertEquals('', $object->getText());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\Run', $object->setText('AAA'));
        $this->assertEquals('AAA', $object->getText());
        $object = new Run('BBB');
        $this->assertEquals('BBB', $object->getText());
    }