Skip to content

Commit 7e5047f

Browse files
committed
Merge branch 'fix/missing-constant-assertion' into all-fix
2 parents f8fd276 + 553ff93 commit 7e5047f

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

crowdin.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ files:
3838
source : '/source/en/asserters/class.inc.rst'
3939
dest : '/source/en/asserters/class.inc.txt'
4040
translation : '/source/%two_letters_code%/asserters/%file_name%.rst'
41+
-
42+
source : '/source/en/asserters/constant.inc.rst'
43+
dest : '/source/en/asserters/constant.inc.txt'
44+
translation : '/source/%two_letters_code%/asserters/%file_name%.rst'
4145
-
4246
source : '/source/en/asserters/dateInterval.inc.rst'
4347
dest : '/source/en/asserters/dateInterval.inc.txt'

source/en/asserters/constant.inc.rst

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.. _constant-anchor:
2+
3+
constant
4+
********
5+
6+
It's the assertion dedicated to the constant.
7+
8+
.. _constant-isEqualTo:
9+
10+
isEqualTo
11+
=========
12+
13+
``isEqualTo`` checks that the given constant is equal to the given value.
14+
15+
.. code-block:: php
16+
17+
<?php
18+
define('YOLO', 'yolo');
19+
20+
namespace Foo\test\unit
21+
{
22+
class Bar extends \atoum
23+
{
24+
public function testWithConstant()
25+
{
26+
$this->constant(YOLO)
27+
->isEqualTo('yolo');
28+
$this->string(YOLO)
29+
->isEqualTo('yolo');
30+
}
31+
}
32+
}

0 commit comments

Comments
 (0)