Skip to content

Commit

Permalink
Merge pull request #30 from ppazos/20_control_length_suite_names_and_…
Browse files Browse the repository at this point in the history
…tests

20_control_length_names
  • Loading branch information
ppazos authored Mar 26, 2024
2 parents 95a3e75 + 68312a6 commit ad6aa9b
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace tests\suite4__Lorem_Ipsum_is_simply_dummy_text;

use \CaboLabs\PhTest\PhTestCase;

class TestCase41_Lorem_Ipsum_is extends PhTestCase {

public function test_this_is_a_test()
{
echo "this is a test output";
$this->assert(true, "This is happening");
}

public function test_this_is_another_test()
{
$this->assert(true, "This is happening");
}
}

?>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace tests\suite4__Lorem_Ipsum_is_simply_dummy_text;

use \CaboLabs\PhTest\PhTestCase;

class TestCase42_simply_dummy_text extends PhTestCase {

public function test_this_is_a_test()
{
echo "this is a test output";
$this->assert(true, "This is happening");
}

public function test_this_is_another_test()
{
$this->assert(true, "This is happening");
}
}

?>
14 changes: 14 additions & 0 deletions views/templates/layout_report.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"
integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
@media (min-width: 500px){
.text-truncate
{
max-width: 72px;
}
}
@media (min-width: 992px) {
.text-truncate
{
max-width: 102px;
}
}
</style>
</head>
<body id="page-top">
<!-- Page Wrapper -->
Expand Down
12 changes: 6 additions & 6 deletions views/templates/menu_items.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<li class="nav-item position-relative">
<a id="<?=$item?>" class="nav-link collapsed" href="#" data-toggle="collapse"
data-target="#collapseUtilities_<?=$item?>" aria-expanded="true" aria-controls="collapseUtilities">
<?php $style_item = "fa fa-check text-success" ?>
data-target="#collapseUtilities_<?=$item?>" aria-expanded="true" aria-controls="collapseUtilities">
<?php $style_item = "fa-fw fa fa-check text-success"; ?>
<?php if ($is_failed): ?>
<?php $style_item = "fas fa-times text-warning" ?>
<?php $style_item = "fa-fw fas fa-times text-warning"; ?>
<?php endif; ?>
<i class="<?=$style_item?>"></i>
<span class="mr-1"><?=$item?></span>
<span class="mr-1 d-inline-block text-truncate align-text-top" title="<?=$item?>"><?=$item?></span>
<?php $style_badge = "top-0 badge badge-success" ?>
<?php if ($badge['case_successfull'] < $badge['total_cases']): ?>
<?php $style_badge = "top-0 badge badge-danger" ?>
<?php $style_badge = "top-0 badge badge-danger"; ?>
<?php endif; ?>
<span class="<?=$style_badge?>"><?=$badge['case_successfull']?> / <?=$badge['total_cases']?></span>
</a>
Expand All @@ -18,7 +18,7 @@
<?php foreach ($namesSuitessubmenu as $submenu): ?>
<?php $suites = explode("\\", $submenu); ?>
<?php if (in_array($item, $suites)): ?>
<a class="collapse-item" href="#"><?=$suites[2]?></a>
<a class="d-inline-block text-truncate collapse-item" style="max-width: 175px;" href="#" title="<?=$suites[2]?>"><?=$suites[2]?></a>
<?php endif; ?>
<?php endforeach; ?>
</div>
Expand Down

0 comments on commit ad6aa9b

Please sign in to comment.