Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit a9093fc

Browse files
committed
chore: removed namespace methods
1 parent 567c23d commit a9093fc

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

src/Factory/Factory.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,4 @@ public function createRule(string $ruleName, array $arguments = []): RuleInterfa
2626
\sprintf('"%s" rule does not exist.', $ruleName)
2727
);
2828
}
29-
30-
public function getNamespaces(): array
31-
{
32-
return $this->namespaces;
33-
}
34-
35-
public function addNamespace(string $namespace): self
36-
{
37-
$this->namespaces[] = $namespace;
38-
39-
return $this;
40-
}
4129
}

tests/FactoryTest.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,4 @@ public function testFactoryCreateRuleSuccess()
2828
{
2929
$this->assertInstanceOf(RuleInterface::class, $this->factory->createRule('notBlank'));
3030
}
31-
32-
public function testFactoryGetNamespaces()
33-
{
34-
$this->assertCount(1, $this->factory->getNamespaces());
35-
$this->assertSame('ProgrammatorDev\\YetAnotherPhpValidator\\Rule', $this->factory->getNamespaces()[0]);
36-
}
37-
38-
public function testFactoryAddNamespace()
39-
{
40-
$this->factory->addNamespace('ProgrammatorDev\\YetAnotherPhpValidator\\Test\\Dummy');
41-
42-
$this->assertCount(2, $this->factory->getNamespaces());
43-
$this->assertSame('ProgrammatorDev\\YetAnotherPhpValidator\\Test\\Dummy', $this->factory->getNamespaces()[1]);
44-
}
4531
}

0 commit comments

Comments
 (0)