PHP code example of webforge / testplate
1. Go to this page and download the library: Download webforge/testplate library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
webforge / testplate example snippets
$bootLoader->registerPackageRoot();
$this->html = <<<'HTML'
<div class="team">
<h1 class="active">team</h1>
<div class="mitarbeiter">
imme
</div>
<div class="mitarbeiter">
philipp
</div>
</div>
HTML;
$this->css('div.team')->count(1)
->css('h1')->count(1)->hasClass('active')->end()
->css('div.mitarbeiter')->count(2)->end()
;