Skip to content

Commit ad8651a

Browse files
committed
Updated unit tests.
1 parent 925da89 commit ad8651a

File tree

1 file changed

+0
-80
lines changed

1 file changed

+0
-80
lines changed

tests/Test.php

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -162,84 +162,4 @@ public function testComponentAttribute()
162162
$this->assertTrue($result === $expectedResult);
163163
}
164164

165-
/**
166-
*
167-
*/
168-
public function testInvalidArguments1()
169-
{
170-
$component = new \IvoPetkov\HTMLServerComponent();
171-
$this->setExpectedException('InvalidArgumentException');
172-
$component->getAttribute(1);
173-
}
174-
175-
/**
176-
*
177-
*/
178-
public function testInvalidArguments2()
179-
{
180-
$component = new \IvoPetkov\HTMLServerComponent();
181-
$this->setExpectedException('InvalidArgumentException');
182-
$component->getAttribute('test1', 1);
183-
}
184-
185-
/**
186-
*
187-
*/
188-
public function testInvalidArguments3()
189-
{
190-
$component = new \IvoPetkov\HTMLServerComponent();
191-
$this->setExpectedException('InvalidArgumentException');
192-
$component->setAttribute('test1', 1);
193-
}
194-
195-
/**
196-
*
197-
*/
198-
public function testInvalidArguments4()
199-
{
200-
$component = new \IvoPetkov\HTMLServerComponent();
201-
$this->setExpectedException('InvalidArgumentException');
202-
$component->setAttribute(1, 'value1');
203-
}
204-
205-
/**
206-
*
207-
*/
208-
public function testInvalidArguments5()
209-
{
210-
$component = new \IvoPetkov\HTMLServerComponent();
211-
$this->setExpectedException('InvalidArgumentException');
212-
$component->removeAttribute(1);
213-
}
214-
215-
/**
216-
*
217-
*/
218-
public function testInvalidArguments6()
219-
{
220-
$component = new \IvoPetkov\HTMLServerComponent();
221-
$this->setExpectedException('InvalidArgumentException');
222-
$component->test1 = 1;
223-
}
224-
225-
/**
226-
*
227-
*/
228-
public function testInvalidArguments7()
229-
{
230-
$compiler = new \IvoPetkov\HTMLServerComponentsCompiler();
231-
$this->setExpectedException('InvalidArgumentException');
232-
$compiler->addAlias('component1', 1);
233-
}
234-
235-
/**
236-
*
237-
*/
238-
public function testInvalidArguments8()
239-
{
240-
$compiler = new \IvoPetkov\HTMLServerComponentsCompiler();
241-
$this->setExpectedException('InvalidArgumentException');
242-
$compiler->addAlias(1, 'file:component1.php');
243-
}
244-
245165
}

0 commit comments

Comments
 (0)