aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2016-09-09 09:29:43 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-09-09 09:29:43 +0200
commitb295358c03d59e5b2fb41c7f2d3ddcc97887c35b (patch)
treea4285e5b4d39c26dcf9c96f025fac97e570731fe
parent60bdefab8db17717871a11101dedec60572f95b8 (diff)
downloadIterator-b295358c03d59e5b2fb41c7f2d3ddcc97887c35b.zip
Iterator-b295358c03d59e5b2fb41c7f2d3ddcc97887c35b.tar.gz
Iterator-b295358c03d59e5b2fb41c7f2d3ddcc97887c35b.tar.bz2
Test: Use the `::class` constant.
-rw-r--r--Test/Unit/Buffer.php2
-rw-r--r--Test/Unit/Counter.php2
-rw-r--r--Test/Unit/Directory.php2
-rw-r--r--Test/Unit/Limit.php4
-rw-r--r--Test/Unit/Map.php4
-rw-r--r--Test/Unit/RegularExpression.php2
6 files changed, 8 insertions, 8 deletions
diff --git a/Test/Unit/Buffer.php b/Test/Unit/Buffer.php
index 3f0b487..34a06d7 100644
--- a/Test/Unit/Buffer.php
+++ b/Test/Unit/Buffer.php
@@ -65,7 +65,7 @@ class Buffer extends Test\Unit\Suite
->isEqualTo($bufferSize)
->let($buffer = $this->invoke($result)->getBuffer())
->object($buffer)
- ->isInstanceOf('SplDoublyLinkedList')
+ ->isInstanceOf(\SplDoublyLinkedList::class)
->boolean($buffer->isEmpty())
->isTrue();
}
diff --git a/Test/Unit/Counter.php b/Test/Unit/Counter.php
index 92537a0..04ba54a 100644
--- a/Test/Unit/Counter.php
+++ b/Test/Unit/Counter.php
@@ -75,7 +75,7 @@ class Counter extends Test\Unit\Suite
->exception(function () {
new LUT\Counter(0, 0, 0);
})
- ->isInstanceOf('Hoa\Iterator\Exception');
+ ->isInstanceOf(LUT\Exception::class);
}
public function case_too_big()
diff --git a/Test/Unit/Directory.php b/Test/Unit/Directory.php
index aa2079e..2960bba 100644
--- a/Test/Unit/Directory.php
+++ b/Test/Unit/Directory.php
@@ -66,7 +66,7 @@ class Directory extends Test\Unit\Suite
$this
->object($file)
- ->isInstanceOf('Hoa\Iterator\Directory');
+ ->isInstanceOf(LUT\Directory::class);
}
})
->then
diff --git a/Test/Unit/Limit.php b/Test/Unit/Limit.php
index 8c4d100..da5783e 100644
--- a/Test/Unit/Limit.php
+++ b/Test/Unit/Limit.php
@@ -77,7 +77,7 @@ class Limit extends Test\Unit\Suite
->exception(function () use ($iterator) {
new LUT\Limit($iterator, -2, 3);
})
- ->isInstanceOf('OutOfRangeException');
+ ->isInstanceOf(\OutOfRangeException::class);
}
public function case_empty()
@@ -90,6 +90,6 @@ class Limit extends Test\Unit\Suite
->exception(function () use ($limit) {
iterator_to_array($limit);
})
- ->isInstanceOf('OutOfBoundsException');
+ ->isInstanceOf(\OutOfBoundsException::class);
}
}
diff --git a/Test/Unit/Map.php b/Test/Unit/Map.php
index 9c5affa..a6fb406 100644
--- a/Test/Unit/Map.php
+++ b/Test/Unit/Map.php
@@ -91,7 +91,7 @@ class Map extends Test\Unit\Suite
->boolean($iterator->hasChildren())
->isTrue()
->object($children = $iterator->getChildren())
- ->isInstanceOf('Hoa\Iterator\Recursive\Map')
+ ->isInstanceOf(LUT\Recursive\Map::class)
->array(iterator_to_array($children))
->isEqualTo(['b', 'c', 'd']);
} elseif ('e' === $key) {
@@ -99,7 +99,7 @@ class Map extends Test\Unit\Suite
->boolean($iterator->hasChildren())
->isTrue()
->object($children = $iterator->getChildren())
- ->isInstanceOf('Hoa\Iterator\Recursive\Map')
+ ->isInstanceOf(LUT\Recursive\Map::class)
->array(iterator_to_array($children))
->isEqualTo(['f', 'g', 'i']);
} elseif ('k' === $value) {
diff --git a/Test/Unit/RegularExpression.php b/Test/Unit/RegularExpression.php
index 21b9d0e..df98280 100644
--- a/Test/Unit/RegularExpression.php
+++ b/Test/Unit/RegularExpression.php
@@ -115,7 +115,7 @@ class RegularExpression extends Test\Unit\Suite
->when($result = $iterator->getChildren())
->then
->object($result)
- ->isInstanceOf('Hoa\Iterator\Recursive\RegularExpression')
+ ->isInstanceOf(LUT\Recursive\RegularExpression::class)
->integer($result->getMode())
->isEqualTo($mode)
->integer($result->getFlags())