Skip to content

Commit 9d035e2

Browse files
committed
test(isser): add failing test
1 parent b67a833 commit 9d035e2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tests/Resolver/ResolverFieldTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function resolverProvider()
3838
['private_property_with_getter2', $object, Toto::PRIVATE_PROPERTY_WITH_GETTER2_VALUE],
3939
['not_object_or_array', 'String', null],
4040
['name', $object, $object->name],
41+
['enabled', $object, $object->isEnabled()]
4142
];
4243
}
4344
}

tests/Resolver/Toto.php

+8
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class Toto
1414
private $privatePropertyWithGetter = self::PRIVATE_PROPERTY_WITH_GETTER_VALUE;
1515
private $private_property_with_getter2 = self::PRIVATE_PROPERTY_WITH_GETTER2_VALUE;
1616
public $name = 'public';
17+
private $enabled = true;
1718

1819
/**
1920
* @return string
@@ -42,4 +43,11 @@ public function resolve()
4243
{
4344
return \func_get_args();
4445
}
46+
47+
/**
48+
* @return bool
49+
*/
50+
public function isEnabled() {
51+
return $this->enabled;
52+
}
4553
}

0 commit comments

Comments
 (0)