Skip to content

Commit 5449e1f

Browse files
committed
TableCellTest - remove DateTimeImmutable test
1 parent c265aa7 commit 5449e1f

3 files changed

Lines changed: 4 additions & 15 deletions

File tree

src/Debug/Plugin/Method/Table.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -152,20 +152,6 @@ public function getValInfo($value, $isRow = false)
152152
break;
153153
}
154154
}
155-
/*
156-
$className = null;
157-
if ($type === Type::TYPE_OBJECT) {
158-
$className = $value instanceof Abstraction
159-
? $value['className']
160-
: \get_class($value);
161-
} elseif ($type === Type::TYPE_IDENTIFIER && $value instanceof Abstraction) {
162-
// Extract class name from identifier value (e.g., "PDO::PARAM_STR" -> "PDO")
163-
$identifierValue = $value['value'];
164-
if (\is_string($identifierValue) && \strpos($identifierValue, '::') !== false) {
165-
$className = \explode('::', $identifierValue)[0];
166-
}
167-
}
168-
*/
169155
return array(
170156
'className' => $type === Type::TYPE_OBJECT
171157
? ($value instanceof Abstraction

tests/Debug/DebugTestFramework.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ public function testMethod($method = null, $args = array(), array $tests = array
332332
$tests['serverLog'] = $tests['chromeLogger'];
333333
}
334334
ArrayUtil::sortWithOrder($tests, ['entry'], 'key');
335+
/*
335336
$tests = \array_intersect_key($tests, \array_flip([
336337
'entry',
337338
'chromeLogger',
@@ -347,6 +348,7 @@ public function testMethod($method = null, $args = array(), array $tests = array
347348
'text',
348349
'wamp',
349350
]));
351+
*/
350352

351353
if (\is_array($method)) {
352354
if (isset($method['dataPath'])) {

tests/Table/TableCellTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use bdk\Table\Factory;
88
use bdk\Table\TableCell;
99
use DateTime;
10-
use DateTimeImmutable;
1110
use PHPUnit\Framework\TestCase;
1211

1312
/**
@@ -330,6 +329,7 @@ public function testGetHtmlDateTimeObject()
330329
/**
331330
* Test getHtml with DateTimeImmutable object
332331
*/
332+
/*
333333
public function testGetHtmlDateTimeImmutableObject()
334334
{
335335
$date = new DateTimeImmutable('2025-01-15 14:45:30');
@@ -341,6 +341,7 @@ public function testGetHtmlDateTimeImmutableObject()
341341
self::assertStringContainsString('14:45:30', $html);
342342
self::assertContains('t_object', $cell->getAttribs()['class']);
343343
}
344+
*/
344345

345346
/**
346347
* Test getHtml with object without __toString

0 commit comments

Comments
 (0)