Code style fixes

This commit is contained in:
Dmitry Khomutov 2017-01-13 22:35:41 +07:00
commit 1237bf450c
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
88 changed files with 205 additions and 261 deletions

View file

@ -31,19 +31,6 @@ class ViewTest extends \PHPUnit_Framework_TestCase
$this->assertTrue($view->render() == 'Hello World');
}
public function testFormatViewHelper()
{
$view = new View('format', __DIR__ . '/data/view/');
$view->number = 1000000.25;
$view->symbol = true;
$this->assertTrue($view->render() == '£1,000,000.25');
$view->number = 1024;
$view->symbol = false;
$this->assertTrue($view->render() == '1,024.00');
}
/**
* @expectedException \Exception
*/
@ -115,12 +102,6 @@ class ViewTest extends \PHPUnit_Framework_TestCase
$view = new Template('Hello{ifnot who} World{/ifnot}');
$view->who = true;
$this->assertTrue($view->render() == 'Hello');
$view = new Template('Hello {if Format:not_present}World{/if}');
$this->assertTrue($view->render() == 'Hello ');
$view = new Template('Hello {ifnot Format:not_present}World{/ifnot}');
$this->assertTrue($view->render() == 'Hello World');
}
public function testUserViewLoop()

View file

@ -1 +0,0 @@
<?= $this->Format()->Currency($number, $symbol); ?>